Skip to content

Commit

Permalink
chore(jest): update to latest version, and fix test
Browse files Browse the repository at this point in the history
expect(foo): foo must be a promise when using rejects/resolves: jestjs/jest#5361
  • Loading branch information
machour committed Mar 23, 2018
1 parent d4bb883 commit f6d2246
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 262 deletions.
6 changes: 3 additions & 3 deletions __tests__/tests/api/index.js
Expand Up @@ -24,9 +24,9 @@ describe('API v3 test', () => {
it('should return the expected response object', async () => {
const expected = open;

expect(
await v3.call('https://api.github.com', 'parameters')
).resolves.toEqual(expected);
expect(v3.call('https://api.github.com', 'parameters')).resolves.toEqual(
expected
);
});
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -125,7 +125,7 @@
"eslint-plugin-react-native": "^2.3.2",
"flow-bin": "^0.47.0",
"husky": "^0.14.3",
"jest": "^21.2.1",
"jest": "^22.4.3",
"keys-diff": "^1.0.5",
"lint-staged": "^3.2.6",
"minicat": "^1.0.0",
Expand Down

0 comments on commit f6d2246

Please sign in to comment.