Skip to content

Commit

Permalink
test: add "expect" to "development" plugin tests
Browse files Browse the repository at this point in the history
Refs: eggjs#5211.
  • Loading branch information
SEWeiTung committed Jun 15, 2023
1 parent c91ffe0 commit c54e7e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/lib/plugins/development.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ describe('test/lib/plugins/development.test.js', () => {
.expect(200);

await app.httpRequest()
.get('/public/hello');
.get('/public/hello')
.expect(404);

await app.httpRequest()
.get('/assets/hello');
.get('/assets/hello')
.expect(404);

await app.httpRequest()
.get('/__koa_mock_scene_toolbox/hello');
.get('/__koa_mock_scene_toolbox/hello')
.expect(404);
});
});

Expand Down

0 comments on commit c54e7e3

Please sign in to comment.