mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix tasks updating and reminders tests
This commit is contained in:
@@ -80,14 +80,14 @@ describe('PUT /tasks/:id', () => {
|
||||
|
||||
let savedDaily = await user.put(`/tasks/${daily._id}`, {
|
||||
reminders: [
|
||||
{id: id1, time: new Date(), startDate: new Date()},
|
||||
{id: id2, time: new Date(), startDate: new Date()},
|
||||
{_id: id1, time: new Date(), startDate: new Date()},
|
||||
{_id: id2, time: new Date(), startDate: new Date()},
|
||||
],
|
||||
});
|
||||
|
||||
expect(savedDaily.reminders.length).to.equal(2);
|
||||
expect(savedDaily.reminders[0].id).to.equal(id1);
|
||||
expect(savedDaily.reminders[1].id).to.equal(id2);
|
||||
expect(savedDaily.reminders[0]._id).to.equal(id1);
|
||||
expect(savedDaily.reminders[1]._id).to.equal(id2);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user