Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(broadcaster): clean up tests for the new Angular way of doing a s…
Browse files Browse the repository at this point in the history
…ingleton
  • Loading branch information
joshuawilson committed Jul 26, 2018
1 parent daab5f7 commit 79d90da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/broadcaster.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ describe('Service: Broadcaster service', () => {
broadcaster.broadcast('testEvent', 1001);
});

it('Broadcaster can only be created once', () => {
expect(() => {
new Broadcaster();
}).toThrow();
});
// TODO: find a way to test that the new Angular 6 singleton works
// it('Broadcaster can only be created once', () => {
// expect(() => {
// new Broadcaster();
// }).toThrow();
// });
});

0 comments on commit 79d90da

Please sign in to comment.