From d51f98328c3b84493cc6bda0732aabb69e20e3a1 Mon Sep 17 00:00:00 2001 From: Imed Jaberi Date: Tue, 21 Jul 2020 12:55:35 +0200 Subject: [PATCH] docs: fix assert example for response (#1489) --- docs/api/response.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/response.md b/docs/api/response.md index d7c92ad8d..9f448338e 100644 --- a/docs/api/response.md +++ b/docs/api/response.md @@ -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') }) ```