We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be39a0a commit 1419cb2Copy full SHA for 1419cb2
tests/test.js
@@ -27,10 +27,14 @@ import db from '../src/db/db'
27
// });
28
29
// describe('general actions', () => {
30
- it('returns homepage', () => {
31
- expect.assertions(1)
32
- const response = await request.get('/')
33
- expect(response.status).toBe(200)
+ it('returns homepage', async () => {
+ try {
+ expect.assertions(1)
+ const response = await request.get('/')
34
+ expect(response.status).toBe(200)
35
+ } catch (error) {
36
+ throw new Error(error)
37
+ }
38
});
39
40
0 commit comments