* empty commit
* Add missing copyright headers
* chore: 🤖 update copywrite config file with correct year
* Add missing copyright headers
* empty commit (gh action merge checks are stuck)
32 lines
881 B
JavaScript
32 lines
881 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2021, 2026
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupTest } from 'ember-qunit';
|
|
import { waitUntil } from '@ember/test-helpers';
|
|
|
|
module('Unit | Controller | scopes/scope/scopes/index', function (hooks) {
|
|
setupTest(hooks);
|
|
|
|
let controller;
|
|
|
|
hooks.beforeEach(function () {
|
|
controller = this.owner.lookup('controller:scopes/scope/scopes/index');
|
|
});
|
|
|
|
test('it exists', function (assert) {
|
|
assert.ok(controller);
|
|
});
|
|
|
|
test('handleSearchInput action sets expected values correctly', async function (assert) {
|
|
const searchValue = 'test';
|
|
controller.handleSearchInput({ target: { value: searchValue } });
|
|
await waitUntil(() => controller.search === searchValue);
|
|
|
|
assert.strictEqual(controller.page, 1);
|
|
assert.strictEqual(controller.search, searchValue);
|
|
});
|
|
});
|