Skip to content

Commit

Permalink
docs: fix assert example for response (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
3imed-jaberi committed Jul 21, 2020
1 parent f8b49b8 commit d51f983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Koa doesn't guard against everything that could be put as a response body -- a f
app.use(async (ctx, next) => {
await next()

ctx.assert.equal('object', typeof ctx, 500, 'some dev did something wrong')
ctx.assert.equal('object', typeof ctx.body, 500, 'some dev did something wrong')
})
```

Expand Down

0 comments on commit d51f983

Please sign in to comment.