From f841255b1660306f2cc00ad046dc9c6753245a31 Mon Sep 17 00:00:00 2001 From: Jason Warren Date: Tue, 16 Apr 2024 14:36:04 +0100 Subject: [PATCH] fix: `response.body` to `body` Line 516 calls `response.body`. It should call `body`, which is equivalent to `response.text`. This caused 3 of us to get stuck at various times! --- src/learn/server/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/learn/server/index.md b/src/learn/server/index.md index 156183e4..0a1b9506 100644 --- a/src/learn/server/index.md +++ b/src/learn/server/index.md @@ -513,7 +513,7 @@ Run your tests again and you should see the first one fail, since it is still ex ```js // ... -assert.match(response.body, /Hello/); +assert.match(body, /Hello/); ``` {% enddisclosure %}