Skip to content

Commit c6edca7

Browse files
sinchangJacksonTian
authored andcommitted
test: add controller search unit test
1 parent d84f6f9 commit c6edca7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/app/controller/search.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
const { app } = require('egg-mock/bootstrap');
4+
5+
describe('test/app/controller/search.test.js', () => {
6+
it('search should ok', async () => {
7+
await app.httpRequest().get('/search').expect(302);
8+
});
9+
});

0 commit comments

Comments
 (0)