summaryrefslogtreecommitdiffstats
path: root/frontend/jest.setup.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-05-02 14:59:28 -0400
committerWes Bos <wesbos@gmail.com>2018-05-02 14:59:28 -0400
commitb6b0ee9c2ef43f4eef4df403897bcd8fd9ad2957 (patch)
tree6659fc57d71b84964f96d597c0559ad4f1e0f084 /frontend/jest.setup.js
parent6a83ac97ba191e1169aca4a662825bc52624cf12 (diff)
move utils to lib
Diffstat (limited to 'frontend/jest.setup.js')
-rw-r--r--frontend/jest.setup.js13
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 };
- },
-});