Skip to content

Commit

Permalink
chore: update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed May 23, 2018
1 parent ad5c0db commit 5a6592c
Show file tree
Hide file tree
Showing 4 changed files with 2,340 additions and 1,842 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-jest": "^21.2.0",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^4.10.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-prettier": "^2.7.0",
"eslint-module-utils": "^2.1.1",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-prettier": "^2.3.1",
"fetch-mock": "^5.13.1",
"flow-bin": "^0.58.0",
"form-data": "^2.3.1",
"jest": "^21.2.1",
"prettier": "^1.7.4",
"eslint-config-prettier": "^2.9.0",
"eslint-module-utils": "^2.2.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-prettier": "^2.6.0",
"fetch-mock": "^6.4.2",
"flow-bin": "^0.72.0",
"form-data": "^2.3.2",
"jest": "^22.4.4",
"prettier": "^1.12.1",
"rimraf": "^2.6.2",
"semantic-release": "^8.2.0"
"semantic-release": "^15.5.0"
},
"config": {
"commitizen": {
Expand Down
10 changes: 7 additions & 3 deletions src/__tests__/mutation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ describe('Mutation tests', () => {
method: 'POST',
});
const req1 = mockReq();
await rnl.sendMutation(req1).catch(() => {});

expect(req1.error instanceof Error).toBeTruthy();
expect(req1.error.toString()).toMatch('Network connection error');
expect.assertions(2);
try {
await rnl.sendMutation(req1).catch(() => {});
} catch (e) {
expect(e instanceof Error).toBeTruthy();
expect(e.toString()).toMatch('Network connection error');
}
});

it('should handle error response', async () => {
Expand Down
10 changes: 7 additions & 3 deletions src/__tests__/queries.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ describe('Queries tests', () => {
method: 'POST',
});
const req1 = mockReq();
await rnl.sendQueries([req1]).catch(() => {});

expect(req1.error instanceof Error).toBeTruthy();
expect(req1.error.toString()).toMatch('Network connection error');
expect.assertions(2);
try {
await rnl.sendQueries([req1]);
} catch (e) {
expect(e instanceof Error).toBeTruthy();
expect(e.toString()).toMatch('Network connection error');
}
});

it('should handle error response', async () => {
Expand Down
Loading

0 comments on commit 5a6592c

Please sign in to comment.