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:
Lisbet Alvarez authored and GitHub committed 2024-11-12 09:27:07 -08:00
1 parent 7c1814118d
commit 57568f9a8c
77 files changed
+946 -81

No files matched your search

@@ -30,7 +30,6 @@ module('Unit | Controller | scopes/scope/users/index', function (hooks) {
};
const urls = {
globalScope: null,
users: null,
};
@@ -47,8 +46,7 @@ module('Unit | Controller | scopes/scope/users/index', function (hooks) {
scope: instances.scopes.global,
});
urls.globalScope = `/scopes/global`;
urls.users = `${urls.globalScope}/users`;
urls.users = '/scopes/global/users';
getUserCount = () => this.server.schema.users.all().models.length;
});
@@ -12,5 +12,6 @@ module('Unit | Controller | scopes/scope/users/new', function (hooks) {
test('it exists', function (assert) {
let controller = this.owner.lookup('controller:scopes/scope/users/new');
assert.ok(controller);
assert.ok(controller.users);
});
});
@@ -16,6 +16,7 @@ module(
'controller:scopes/scope/users/user/accounts',
);
assert.ok(controller);
assert.ok(controller.users);
});
},
);
@@ -14,5 +14,6 @@ module('Unit | Controller | scopes/scope/users/user/index', function (hooks) {
'controller:scopes/scope/users/user/index',
);
assert.ok(controller);
assert.ok(controller.users);
});
});