Cleanup
This commit is contained in:
@ -25,6 +25,7 @@ describe('Collection model', () => {
|
||||
});
|
||||
|
||||
await collection.fetch();
|
||||
expect(client.post).toHaveBeenCalledWith('/collections.info', { id: 123 });
|
||||
expect(collection.name).toBe('New collection');
|
||||
});
|
||||
|
||||
|
@ -9,6 +9,5 @@ const snap = children => {
|
||||
expect(toJson(wrapper)).toMatchSnapshot();
|
||||
};
|
||||
|
||||
global.fetch = require('jest-fetch-mock');
|
||||
global.localStorage = localStorage;
|
||||
global.snap = snap;
|
||||
|
@ -180,7 +180,6 @@
|
||||
"flow-bin": "^0.45.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest-cli": "^20.0.0",
|
||||
"jest-fetch-mock": "^1.2.0",
|
||||
"koa-webpack-dev-middleware": "1.4.5",
|
||||
"koa-webpack-hot-middleware": "1.0.3",
|
||||
"lint-staged": "^3.4.0",
|
||||
|
@ -4543,12 +4543,6 @@ jest-environment-node@^20.0.3:
|
||||
jest-mock "^20.0.3"
|
||||
jest-util "^20.0.3"
|
||||
|
||||
jest-fetch-mock@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-fetch-mock/-/jest-fetch-mock-1.2.0.tgz#15ac5c2d32d2c888bd3d132b682a4deb17f3ab35"
|
||||
dependencies:
|
||||
whatwg-fetch "1.0.0"
|
||||
|
||||
jest-haste-map@^20.0.3:
|
||||
version "20.0.3"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.0.3.tgz#6377d537eaf34eb5f75121a691cae3fde82ba971"
|
||||
|
Reference in New Issue
Block a user