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

@@ -24,7 +24,6 @@ module('Unit | Controller | scopes/scope/workers/new', function (hooks) {
};
const urls = {
globalScope: null,
workers: null,
};
@@ -38,8 +37,7 @@ module('Unit | Controller | scopes/scope/workers/new', function (hooks) {
scope: instances.scopes.global,
});
urls.globalScope = `/scopes/global`;
urls.workers = `${urls.globalScope}/workers`;
urls.workers = '/scopes/global/workers';
});
test('it exists', function (assert) {
@@ -0,0 +1,22 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module(
'Unit | Controller | scopes/scope/workers/worker/index',
function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
let controller = this.owner.lookup(
'controller:scopes/scope/workers/worker/index',
);
assert.ok(controller);
assert.ok(controller.workers);
});
},
);
@@ -52,6 +52,7 @@ module(
test('it exists', function (assert) {
assert.ok(controller);
assert.ok(controller.workers);
});
test('tagDisplayName returns the display name of the tag', function (assert) {