diff --git a/src/content/4/en/part4b.md b/src/content/4/en/part4b.md index ea3871ad4f6..0a9e777efc4 100644 --- a/src/content/4/en/part4b.md +++ b/src/content/4/en/part4b.md @@ -794,8 +794,8 @@ test('a note can be deleted', async () => { const notesAtEnd = await helper.notesInDb() - const contents = notesAtEnd.map(n => n.content) - assert(!contents.includes(noteToDelete.content)) + const ids = notesAtEnd.map(n => n.id) + assert(!ids.includes(noteToDelete.id)) assert.strictEqual(notesAtEnd.length, helper.initialNotes.length - 1) }) @@ -1087,8 +1087,8 @@ describe('when there is initially some notes saved', () => { const notesAtEnd = await helper.notesInDb() - const contents = notesAtEnd.map(n => n.content) - assert(!contents.includes(noteToDelete.content)) + const ids = notesAtEnd.map(n => n.id) + assert(!ids.includes(noteToDelete.id)) assert.strictEqual(notesAtEnd.length, helper.initialNotes.length - 1) })