Files
threshold-ui/addons/core/tests/unit/services/browser-object-test.js
T
2022-11-02 14:30:10 -04:00

22 lines
720 B
JavaScript

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');
});
});