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 bb0adf1 commit dbe74ceCopy full SHA for dbe74ce
1 file changed
test/unit/test.express.js
@@ -24,7 +24,13 @@ const app = require('../../app');
24
25
26
describe('express', () => {
27
- it('load home page when GET /', () => request(app).get('/').expect(200));
+ it('load home page when GET /', () => {
28
+ request(app).get('/').expect(200);
29
+ });
30
- it('404 when page not found', () => request(app).get('/foo/bar').expect(404));
31
+ it('404 when page not found', () => {
32
+ request(app)
33
+ .get('/foo/bar')
34
+ .expect(new Error('Not Found'));
35
36
});
0 commit comments