Skip to content

Commit

Permalink
test: test isServiceWorker method
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Mar 1, 2020
1 parent 6e3755f commit 6f46c84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ describe('Globals', function() {
expect(Globals.isBrowser()).toBe(true);
});
});

describe('isServiceWorker()', function() {
it(`should return true if we are running in a web worker`, function() {
expect(Globals.isServiceWorker()).toBe(true);
});
});
});

0 comments on commit 6f46c84

Please sign in to comment.