File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -790,8 +790,8 @@ test('a note can be deleted', async () => {
790790
791791 const notesAtEnd = await helper .notesInDb ()
792792
793- const contents = notesAtEnd .map (n => n .content )
794- assert (! contents .includes (noteToDelete .content ))
793+ const ids = notesAtEnd .map (n => n .id )
794+ assert (! ids .includes (noteToDelete .id ))
795795
796796 assert .strictEqual (notesAtEnd .length , helper .initialNotes .length - 1 )
797797})
@@ -1082,8 +1082,8 @@ describe('when there is initially some notes saved', () => {
10821082
10831083 const notesAtEnd = await helper .notesInDb ()
10841084
1085- const contents = notesAtEnd .map (n => n .content )
1086- assert (! contents .includes (noteToDelete .content ))
1085+ const ids = notesAtEnd .map (n => n .id )
1086+ assert (! ids .includes (noteToDelete .id ))
10871087
10881088 assert .strictEqual (notesAtEnd .length , helper .initialNotes .length - 1 )
10891089 })
You can’t perform that action at this time.
0 commit comments