Skip to content

Commit

Permalink
test(lib): fix a test (#347)
Browse files Browse the repository at this point in the history
Test was testing the same thing twice. Updated to test the mock.
  • Loading branch information
aaronfrost authored Mar 3, 2020
1 parent c5d9f10 commit de98601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/flash-prevention.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('Flash Prevention: Test Flash Prevention', () => {
let appRoot = window.document.querySelector('app-root');
let mockRoot = window.document.querySelector('app-root-scully');
let appRootHasClassFoo = appRoot.classList.contains('foo');
let mockRootHasClassFoo = appRoot.classList.contains('foo');
let mockRootHasClassFoo = mockRoot.classList.contains('foo');

expect(appRootHasClassFoo).toBe(true);
expect(mockRootHasClassFoo).toBe(true);
Expand Down

0 comments on commit de98601

Please sign in to comment.