Skip to content

Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Todo list app#1015

Open
Elisabeth-Matulian wants to merge 2 commits intoCodeYourFuture:mainfrom
Elisabeth-Matulian:todo-list-app
Open

Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Todo list app#1015
Elisabeth-Matulian wants to merge 2 commits intoCodeYourFuture:mainfrom
Elisabeth-Matulian:todo-list-app

Conversation

@Elisabeth-Matulian
Copy link
Copy Markdown

@Elisabeth-Matulian Elisabeth-Matulian commented Mar 15, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Implement todo list app

Questions

N/Q

@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 15, 2026
Copy link
Copy Markdown
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is working good.

Can you also practice this?

In todos.test.mjs, write a Jest test that verifies deleteCompleted() works correctly.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 26, 2026
@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 26, 2026
Copy link
Copy Markdown
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Well done.

Comment on lines +136 to +143
test("Delete 2 Completed task", () => {
const todos = createMockTodos();
const todosBeforeDeletion = createMockTodos();
const lengthBeforeDeletion = todos.length;
Todos.deleteCompleted(todos);

expect(todos).toHaveLength(lengthBeforeDeletion - 2);
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good start.
You could also check if the remaining two elements are actually the non-completed tasks.

Well, the more comprehensive our unit tests are, the higher the quality of our software.

No change required in this exercise.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants