From c03c6477be3d56b7d573a54d94f718990c3bec80 Mon Sep 17 00:00:00 2001 From: mikael Date: Wed, 5 Mar 2025 11:54:43 +0200 Subject: [PATCH] Update part4b.md Define assert in the supertest -chapter was missing. --- src/content/4/en/part4b.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/4/en/part4b.md b/src/content/4/en/part4b.md index 7dc9f05712..236abc74df 100644 --- a/src/content/4/en/part4b.md +++ b/src/content/4/en/part4b.md @@ -208,6 +208,10 @@ Let's add two notes to the test database using the _mongo.js_ program (here we m Let's write a few more tests: ```js +const assert = require('node:assert') + +// ... + test('there are two notes', async () => { const response = await api.get('/api/notes')