From b6b0ee9c2ef43f4eef4df403897bcd8fd9ad2957 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Wed, 2 May 2018 14:59:28 -0400 Subject: move utils to lib --- frontend/jest.setup.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'frontend/jest.setup.js') diff --git a/frontend/jest.setup.js b/frontend/jest.setup.js index ad01898..82edfc9 100644 --- a/frontend/jest.setup.js +++ b/frontend/jest.setup.js @@ -2,16 +2,3 @@ import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() }); - -expect.extend({ - toHaveBeenCalledWithVariables(received, argument) { - const receivedVariables = received.mock.calls[0][0].variables; - const pass = this.equals(receivedVariables, argument); - const message = () => - `expected ${this.utils.printExpected(argument)} - -to match ${this.utils.printReceived(receivedVariables)}`; - - return { message, pass }; - }, -}); -- cgit v1.3