This is a simple To-Do List application built using JavaScript and HTML and CSS. It allows users to create, manage, and track their tasks. The application features include adding tasks, marking tasks as completed, editing task descriptions, deleting tasks, and clearing all completed tasks.
This pull request introduces tests for the Todo App to ensure the correct functionality of the addTask and deleteTask functions. The following changes were made:
Add test file todo.test.js to include test cases for the addTask and deleteTask functions.
Introduced mocks for the localStorage object using localStorageMock to simulate localStorage operations.
Set up a simulated DOM environment using JSDOM to create a mock document and window objects.
Added necessary setup and teardown steps in the test cases using beforeEach to clear the localStorage before each test.
Modified the test assertions to properly check the interactions with localStorage and the DOM, ensuring the correct behavior of the functions.
These changes provide accurate and reliable tests for the addTask and deleteTask functions.
This pull request introduces tests for the Todo App to ensure the correct functionality of the addTask and deleteTask functions. The following changes were made:
These changes provide accurate and reliable tests for the addTask and deleteTask functions.
Please review and offer any suggested changes.