Skip to content

Commit

Permalink
Add a test for updateStatus function
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrohimRasulov committed Jan 20, 2022
1 parent 84e1144 commit f13613e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/__tests__/clearcompleted-edit-status.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ describe('Test clearCompleted tasks, update Status and edit Task', () => {
editTask(task, textUpdate);
expect(task.description).toEqual('This is the update');
});

test('Update Status', () => {
const statusComplete = true;
updateStatuses(task, statusComplete);
expect(task.completed).toEqual(statusComplete);
});
});

0 comments on commit f13613e

Please sign in to comment.