Skip to content

Commit 202d0cd

Browse files
committed
correct test code
1 parent 4bb8605 commit 202d0cd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Sprint-3/todo-list/todos.test.mjs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ describe("deleteCompleted()", () => {
134134
{ task: "Description of task 2", completed: true },
135135
];
136136

137-
deleteCompleted(myTodos);
137+
Todos.deleteCompleted(myTodos);
138138

139-
expect(
140-
myTodos.toEqual([{ task: "Description of task 1", completed: false }])
141-
);
139+
expect(myTodos).toEqual([
140+
{ task: "Description of task 1", completed: false },
141+
]);
142142
});
143143
});

0 commit comments

Comments
 (0)