mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-17 17:32:22 +00:00
Fixed integration tests
This commit is contained in:
parent
c0117706e4
commit
65566f7607
3 changed files with 3 additions and 3 deletions
|
|
@ -219,7 +219,7 @@ describe('POST /tasks/:id/score/:direction', () => {
|
|||
await user.post(`/tasks/${daily._id}/score/up`);
|
||||
let task = await user.get(`/tasks/${daily._id}`);
|
||||
|
||||
expect(task.nextDue.length).to.eql(3);
|
||||
expect(task.nextDue.length).to.eql(6);
|
||||
});
|
||||
|
||||
it('scores up daily even if it is already completed'); // Yes?
|
||||
|
|
|
|||
|
|
@ -510,7 +510,7 @@ describe('POST /tasks/user', () => {
|
|||
expect(task.weeksOfMonth).to.eql([3]);
|
||||
expect(new Date(task.startDate)).to.eql(now);
|
||||
expect(task.isDue).to.be.true;
|
||||
expect(task.nextDue.length).to.eql(3);
|
||||
expect(task.nextDue.length).to.eql(6);
|
||||
});
|
||||
|
||||
it('creates multiple dailys', async () => {
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ describe('PUT /tasks/:id', () => {
|
|||
expect(savedDaily.frequency).to.eql('daily');
|
||||
expect(savedDaily.everyX).to.eql(5);
|
||||
expect(savedDaily.isDue).to.be.false;
|
||||
expect(savedDaily.nextDue.length).to.eql(3);
|
||||
expect(savedDaily.nextDue.length).to.eql(6);
|
||||
});
|
||||
|
||||
it('can update checklists (replace it)', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue