Skip to content

Commit

Permalink
test: fix timeout tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cweili committed Jan 12, 2021
1 parent a75fab8 commit 17d0544
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module.exports = {
extends: 'airbnb-base',
env: {
browser: true
browser: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
sourceType: 'module',
},
rules: {
'no-multi-assign': 0,
'no-param-reassign': 0,
'no-underscore-dangle': 0
}
'no-underscore-dangle': 0,
},
};
4 changes: 2 additions & 2 deletions test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
extends: [
'plugin:jest/recommended',
'../.eslintrc.js'
]
'../.eslintrc.js',
],
};
2 changes: 1 addition & 1 deletion test/methods.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ describe('req-json methods', () => {
}, 1000);
}));

await expect(reqJSON.get('/api/item/:id', 1, { timeout: 1 })).rejects.toThrow();
(await expect(reqJSON.get('/api/item/:id', 1, { timeout: 1 }))).rejects.toThrow();
});
});

0 comments on commit 17d0544

Please sign in to comment.