Files
threshold-ui/addons/core/tests/unit/services/scope-test.js
T
hashicorp-copywrite[bot]andCameron Perera 3d610427d0 [COMPLIANCE] Add Copyright and License Headers (#1617)
* [COMPLIANCE] Add Copyright and License Headers

* chore: 🤖 update Copyright headers to satisfy our lint rules

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
2023-03-01 09:39:41 -06:00

36 lines
1.1 KiB
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Service | scope', function (hooks) {
setupTest(hooks);
test('it can contain org scope', function (assert) {
let service = this.owner.lookup('service:scope');
service.org = {};
assert.ok(service.org, 'Service contains org scope');
});
test('it can contain orgs list scope', function (assert) {
let service = this.owner.lookup('service:scope');
service.orgsList = [];
assert.ok(service.orgsList, 'Service contains orgs list scope');
});
test('it can contain project scope', function (assert) {
let service = this.owner.lookup('service:scope');
service.project = {};
assert.ok(service.project, 'Service contains project scope');
});
test('it can contain projects list scope', function (assert) {
let service = this.owner.lookup('service:scope');
service.projectsList = [];
assert.ok(service.projectsList, 'Service contains projects list scope');
});
});