Skip to content

Brussels | ITP-2026-1 | Meysam Razagh | Sprint 3| Feature/todo list#153

Open
Epunch wants to merge 4 commits into
HackYourFutureBelgium:mainfrom
Epunch:feature/todo-list
Open

Brussels | ITP-2026-1 | Meysam Razagh | Sprint 3| Feature/todo list#153
Epunch wants to merge 4 commits into
HackYourFutureBelgium:mainfrom
Epunch:feature/todo-list

Conversation

@Epunch
Copy link
Copy Markdown

@Epunch Epunch commented May 17, 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

  • HTML (index.html): Added a "Delete completed tasks" button below the todo list.
  • Logic (todos.mjs): Implemented the deleteCompleted function to filter out tasks where completed is true.
  • UI Logic (script.mjs): Connected the new button to the deleteCompleted function and re-rendered the UI upon click.
  • Testing (todos.test.mjs): Added Jest unit tests to verify that deleteCompleted works correctly and handles the input list as expected without errors.

Verifying the Changes

  • Run npm test to see the unit tests passing successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant