Skip to content

Commit 86407ba

Browse files
committed
test: verify note deletion by id instead of content
1 parent 4b1a795 commit 86407ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/4/en/part4b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,8 @@ describe('when there is initially some notes saved', () => {
10871087

10881088
const notesAtEnd = await helper.notesInDb()
10891089

1090-
const contents = notesAtEnd.map(n => n.content)
1091-
assert(!contents.includes(noteToDelete.content))
1090+
const ids = notesAtEnd.map(n => n.id)
1091+
assert(!ids.includes(noteToDelete.id))
10921092

10931093
assert.strictEqual(notesAtEnd.length, helper.initialNotes.length - 1)
10941094
})

0 commit comments

Comments
 (0)