Skip to content

Commit

Permalink
test: add "expect" to "development" plugin tests (#5212)
Browse files Browse the repository at this point in the history
Refs: #5211.
  • Loading branch information
SEWeiTung authored Jun 15, 2023
1 parent c91ffe0 commit f98dbfe
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 f98dbfe

Please sign in to comment.