Skip to content

Commit

Permalink
fix(navigator): add app re-export
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Apr 17, 2021
1 parent 5f53570 commit 7a9db4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/services/browser/navigator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ember-browser-services/services/browser/navigator';
2 changes: 2 additions & 0 deletions tests/unit/services/browser/navigator-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module('Service | browser/navigator', function (hooks) {
test('it is about equal the real thing', async function (assert) {
let service = getNavigatorService(this.owner);

assert.ok(service, 'service exists');
assert.ok(service.mediaDevices, 'api on service exists');
assert.equal(service.mediaDevices, navigator.mediaDevices);
});
});
Expand Down

0 comments on commit 7a9db4d

Please sign in to comment.