mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
add tags routes, misc fixes
This commit is contained in:
@@ -49,4 +49,19 @@ describe('POST /tasks', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
context('correctly creates new tasks', () => {
|
||||
it('habit', () => {
|
||||
return api.post('/tasks', {
|
||||
text: 'test habit',
|
||||
type: 'habit',
|
||||
up: false,
|
||||
down: true,
|
||||
history: 'i cannot be set',
|
||||
notes: 1976,
|
||||
}).then((task) => {
|
||||
expect(task.userId).to.equal(user._id);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user