Skip to content

Commit 4ec3342

Browse files
committed
Fix test description and variable naming in deleteCompleted() tests
1 parent c1b510f commit 4ec3342

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe("deleteCompleted()", () => {
132132
Todos.deleteCompleted(todos);
133133

134134
expect(todos).toHaveLength(2);
135-
expect(todos.every((t) => !t.completed)).toBe(true);
135+
expect(todos.every((task) => !task.completed)).toBe(true);
136136
});
137137

138138
test("Keeps the remaining tasks in their original order", () => {
@@ -144,7 +144,7 @@ describe("deleteCompleted()", () => {
144144
expect(todos[1]).toEqual(before[3]);
145145
});
146146

147-
test("Keeps the remaining tasks in their original order", () => {
147+
test("Empties the list when every task is completed", () => {
148148
const todos = [
149149
{ task: "A", completed: true },
150150
{ task: "B", completed: true },

0 commit comments

Comments
 (0)