mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
v3: first review of common code and task models
This commit is contained in:
@@ -121,6 +121,7 @@ describe('POST /tasks/user', () => {
|
||||
completed: true,
|
||||
streak: 25,
|
||||
dateCompleted: 'never',
|
||||
value: 324, // ignored because not a reward
|
||||
});
|
||||
|
||||
expect(task.userId).to.equal(user._id);
|
||||
@@ -131,6 +132,7 @@ describe('POST /tasks/user', () => {
|
||||
expect(task.completed).to.equal(false);
|
||||
expect(task.streak).to.equal(0);
|
||||
expect(task.streak).not.to.equal('never');
|
||||
expect(task.value).not.to.equal(324);
|
||||
});
|
||||
|
||||
it('ignores invalid fields', async () => {
|
||||
|
||||
Reference in New Issue
Block a user