Skip to content

Commit

Permalink
fix: test error (#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 authored Jul 22, 2021
1 parent d28d6bc commit 9f47f64
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/web/test/enhance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,15 @@ describe('/test/enhance.test.ts', () => {
.expect(200)
.expect('127');

await request(app.callback())
const result = await request(app.callback())
.get('/param/param_queries')
.query('name=harry&name=zhangting')
.expect(200)
.expect([
"harry",
"zhangting"
]);
.query('name=harry&name=zhangting');

expect(result.status).toEqual(200);
expect(result.body).toEqual([
"harry",
"zhangting"
]);

await request(app.callback())
.get('/param/param_queries_all')
Expand Down

0 comments on commit 9f47f64

Please sign in to comment.