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 faf3046 commit 85ff61fCopy full SHA for 85ff61f
tests/test.js
@@ -27,14 +27,11 @@ import db from '../src/db/db'
27
// });
28
29
// describe('general actions', () => {
30
- it('returns homepage', async () => {
31
- try {
32
- expect.assertions(1)
33
- const response = await request.get('/')
34
- expect(response.status).toBe(200)
35
- } catch (error) {
36
- throw new Error(error)
37
- }
+ it('returns homepage', async done => {
+ expect.assertions(1)
+ const response = await request.get('/')
+ expect(response.status).toBe(200)
+ done()
38
});
39
40
0 commit comments