Dep upgrades pt ii: 5 failed tests
parent
ff50ab3c9e
commit
55d9c71cbf
16
package.json
16
package.json
|
@ -31,7 +31,7 @@
|
|||
"@blueprintjs/core": "2.3.1",
|
||||
"@blueprintjs/datetime": "2.0.3",
|
||||
"@blueprintjs/select": "^2.0.1",
|
||||
"@types/enzyme": "3.1.12",
|
||||
"@types/enzyme": "3.1.13",
|
||||
"@types/fastclick": "^1.0.28",
|
||||
"@types/history": "4.7.0",
|
||||
"@types/i18next": "8.4.5",
|
||||
|
@ -50,15 +50,15 @@
|
|||
"browser-speech": "1.1.1",
|
||||
"coveralls": "3.0.2",
|
||||
"css-loader": "1.0.0",
|
||||
"enzyme": "^3.1.0",
|
||||
"enzyme-adapter-react-16": "^1.1.0",
|
||||
"enzyme": "3.6.0",
|
||||
"enzyme-adapter-react-16": "1.5.0",
|
||||
"farmbot": "6.5.0-rc4",
|
||||
"farmbot-toastr": "^1.0.3",
|
||||
"fastclick": "^1.0.6",
|
||||
"file-loader": "2.0.0",
|
||||
"i18next": "11.7.0",
|
||||
"imports-loader": "0.8.0",
|
||||
"jest": "23.4.1",
|
||||
"jest": "23.5.0",
|
||||
"json-loader": "0.5.7",
|
||||
"lodash": "4.17.10",
|
||||
"markdown-it": "^8.4.0",
|
||||
|
@ -68,14 +68,14 @@
|
|||
"node-sass": "4.9.3",
|
||||
"optimize-css-assets-webpack-plugin": "5.0.1",
|
||||
"raf": "^3.4.0",
|
||||
"react": "16.4.1",
|
||||
"react": "16.4.2",
|
||||
"react-addons-css-transition-group": "^15.6.2",
|
||||
"react-addons-test-utils": "^15.6.2",
|
||||
"react-color": "2.14.1",
|
||||
"react-dom": "16.4.1",
|
||||
"react-dom": "16.4.2",
|
||||
"react-redux": "^5.0.6",
|
||||
"react-router": "^3",
|
||||
"react-test-renderer": "16.4.1",
|
||||
"react-test-renderer": "16.4.2",
|
||||
"react-transition-group": "^2.3.1",
|
||||
"redux": "4.0.0",
|
||||
"redux-immutable-state-invariant": "^2.1.0",
|
||||
|
@ -84,7 +84,7 @@
|
|||
"sass-loader": "7.1.0",
|
||||
"stats-webpack-plugin": "0.7.0",
|
||||
"style-loader": "0.23.0",
|
||||
"ts-jest": "23.0.1",
|
||||
"ts-jest": "23.1.4",
|
||||
"ts-lint": "^4.5.1",
|
||||
"ts-loader": "5.0.0",
|
||||
"tslint": "5.11.0",
|
||||
|
|
|
@ -86,9 +86,9 @@ describe("deletePoints()", () => {
|
|||
mockData = [{ id: 1 }, { id: 2 }, { id: 3 }];
|
||||
const dispatch = jest.fn();
|
||||
await deletePoints("weeds", "plant-detection")(dispatch, jest.fn());
|
||||
expect(axios.post).toHaveBeenCalledWith(":///api/points/search",
|
||||
expect(axios.post).toHaveBeenCalledWith("http://localhost/api/points/search",
|
||||
{ meta: { created_by: "plant-detection" } });
|
||||
await expect(axios.delete).toHaveBeenCalledWith(":///api/points/1,2,3");
|
||||
await expect(axios.delete).toHaveBeenCalledWith("http://localhost/api/points/1,2,3");
|
||||
expect(dispatch).toHaveBeenCalledWith({
|
||||
payload: [1, 2, 3],
|
||||
type: Actions.DELETE_POINT_OK
|
||||
|
@ -104,9 +104,9 @@ describe("deletePoints()", () => {
|
|||
mockData = [{ id: 1 }, { id: 2 }, { id: 3 }];
|
||||
const dispatch = jest.fn();
|
||||
await deletePoints("weeds", "plant-detection")(dispatch, jest.fn());
|
||||
expect(axios.post).toHaveBeenCalledWith(":///api/points/search",
|
||||
expect(axios.post).toHaveBeenCalledWith("http://localhost/api/points/search",
|
||||
{ meta: { created_by: "plant-detection" } });
|
||||
await expect(axios.delete).toHaveBeenCalledWith(":///api/points/1,2,3");
|
||||
await expect(axios.delete).toHaveBeenCalledWith("http://localhost/api/points/1,2,3");
|
||||
await expect(dispatch).not.toHaveBeenCalled();
|
||||
expect(mockInc).toHaveBeenCalledTimes(1);
|
||||
expect(mockFinish).toHaveBeenCalledTimes(1);
|
||||
|
@ -120,7 +120,7 @@ describe("deletePoints()", () => {
|
|||
mockData = times(200, () => ({ id: 1 }));
|
||||
const dispatch = jest.fn();
|
||||
await deletePoints("weeds", "plant-detection")(dispatch, jest.fn());
|
||||
expect(axios.post).toHaveBeenCalledWith(":///api/points/search",
|
||||
expect(axios.post).toHaveBeenCalledWith("http://localhost/api/points/search",
|
||||
{ meta: { created_by: "plant-detection" } });
|
||||
await expect(axios.delete).toHaveBeenCalledWith(
|
||||
expect.stringContaining(":///api/points/1,"));
|
||||
|
|
Loading…
Reference in New Issue