issues
search
chaw-bot
/
toDoList
A to-do list app, enables users to add tasks, edit tasks, cross out tasks and delete tasks
10
stars
0
forks
source link
Add and remove function testing
#6
Closed
chaw-bot
closed
2 years ago
chaw-bot
commented
2 years ago
For this PR:
Used jest framework for testing.
Created a test file for a file containing the add item and delete item functions that were tested.
Mocked a storage object to "imitate" localStorage operations.
Mocked HTML to test if add/delete functions add or remove exactly one
element to/from the list in the DOM.
For this PR: