* [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>
27 lines
798 B
JavaScript
27 lines
798 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupTest } from 'ember-qunit';
|
|
|
|
module('Unit | Service | browser-object', function (hooks) {
|
|
setupTest(hooks);
|
|
|
|
test('it contains a window', function (assert) {
|
|
let service = this.owner.lookup('service:browser-object');
|
|
assert.ok(service.window, 'Service contains a window');
|
|
});
|
|
|
|
test('it contains a document', function (assert) {
|
|
let service = this.owner.lookup('service:browser-object');
|
|
assert.ok(service.document, 'Service contains a document');
|
|
});
|
|
|
|
test('it contains a hostname', function (assert) {
|
|
let service = this.owner.lookup('service:browser-object');
|
|
assert.ok(service.hostname, 'Service contains a hostname');
|
|
});
|
|
});
|