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

Commit

Permalink
fix: update invarant fn test
Browse files Browse the repository at this point in the history
  • Loading branch information
mg901 committed Dec 19, 2018
1 parent 20b7d14 commit 7a57413
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/helpers/invariant/__snapshots__/index.spec.js.snap

This file was deleted.

2 changes: 1 addition & 1 deletion src/helpers/invariant/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { invariant } from '.';
describe('helpers', () => {
describe('invariant fn', () => {
it('if the condition is not fulfilled, throw an error', () => {
expect(invariant(() => false, 'WTF!?')).toMatchSnapshot();
expect(invariant(() => false, 'WTF!?')).toEqual(undefined);
});
});
});

0 comments on commit 7a57413

Please sign in to comment.