test: 💍 add missing controller unit tests in admin-ui (#2553)
* test: 💍 add missing controller unit tests in admin-ui ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14740
This commit is contained in:
1 parent
7c1814118d
commit
57568f9a8c
77 files changed
+946
-81
No files matched your search
@@ -44,6 +44,14 @@ module('Unit | Controller | application', function (hooks) {
|
||||
assert.false(session.isAuthenticated);
|
||||
});
|
||||
|
||||
test('toggleTheme action sets theme to specified value', function (assert) {
|
||||
assert.notOk(session.data.theme);
|
||||
|
||||
controller.toggleTheme('light');
|
||||
|
||||
assert.strictEqual(session.data.theme, 'light');
|
||||
});
|
||||
|
||||
test('disconnect action de-authenticates a user and resets cluster url', async function (assert) {
|
||||
const url = 'http://localhost:9200';
|
||||
await clusterUrl.setClusterUrl(url);
|
||||
|
||||
Reference in new issue
Block a user