diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-02 14:59:28 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-02 14:59:28 -0400 |
| commit | b6b0ee9c2ef43f4eef4df403897bcd8fd9ad2957 (patch) | |
| tree | 6659fc57d71b84964f96d597c0559ad4f1e0f084 /frontend/jest.setup.js | |
| parent | 6a83ac97ba191e1169aca4a662825bc52624cf12 (diff) | |
move utils to lib
Diffstat (limited to 'frontend/jest.setup.js')
| -rw-r--r-- | frontend/jest.setup.js | 13 |
1 files changed, 0 insertions, 13 deletions
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 }; - }, -}); |
