Repository navigation
London | 26-ITP-Sep | Chandramani Gaire | Sprint 3 | Todo list app - #1573
gaireprakash20-ops wants to merge 13 commits into
Conversation
…ment the function in script.mjs
|
The CYF AI reviewer checked this PR did not find any obvious problems. Please wait for a volunteer to also have a look and offer their own feedback. |
|
From your commit history, I can see that you have modified multiple files. However, only index.html has been committed correctly. Would you please also stage other related files and commit them as well? If you encounter any problem during push commit, please seek help from volunteer on Saturday workshop. Thank you very much. |
gaireprakash20-ops
left a comment
There was a problem hiding this comment.
i did as per the requirement
hackertainment
left a comment
There was a problem hiding this comment.
The code and the logic looks good to me. Just more test cases are needed. Please keep it up. Thank you.
| test("deleteCompleted removes only completed todos", () => { | ||
| const todos = [ | ||
| { task: "A", completed: true }, | ||
| { task: "B", completed: false }, | ||
| { task: "C", completed: true }, | ||
| ]; | ||
| deleteCompleted(todos); | ||
| expect(todos).toEqual([{ task: "B", completed: false }]); | ||
| }); |
There was a problem hiding this comment.
This test case is correct. How about if all tasks are completed or none of the tasks is completed? Please add those test case as well. Thank you.
There was a problem hiding this comment.
i test the edge cases
|
Well done and congratulation, you have completed this PR successfully. |
Learners, PR Template
Self checklist
Task code
CYF-1097
Changelist
Add delete button and make a delete completed function, make test cases add event listener.