Skip to content

Commit

Permalink
test(utils): use calledWith
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss committed Sep 25, 2018
1 parent 914732d commit 78c03ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/__tests__/utils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ describe('utils.deprecate', () => {
const actual = 6;

expect(actual).toBe(expectation);
expect(warn).toHaveBeenCalled();
expect(warn).toHaveBeenCalledWith('[InstantSearch.js]: message');

warn.mockReset();
warn.mockRestore();
Expand Down Expand Up @@ -906,7 +906,7 @@ describe('utils.warn', () => {

utils.warn(message);

expect(warn).toHaveBeenCalled();
expect(warn).toHaveBeenCalledWith('[InstantSearch.js]: message');

warn.mockReset();
warn.mockRestore();
Expand Down

0 comments on commit 78c03ea

Please sign in to comment.