* [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>
36 lines
1.1 KiB
JavaScript
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');
|
|
});
|
|
});
|