Skip to content

Commit d51f983

Browse files
authored
docs: fix assert example for response (#1489)
1 parent f8b49b8 commit d51f983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/response.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Koa doesn't guard against everything that could be put as a response body -- a f
140140
app.use(async (ctx, next) => {
141141
await next()
142142

143-
ctx.assert.equal('object', typeof ctx, 500, 'some dev did something wrong')
143+
ctx.assert.equal('object', typeof ctx.body, 500, 'some dev did something wrong')
144144
})
145145
```
146146

0 commit comments

Comments
 (0)