mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
finish PUT-tasks_id tests and fix some edge bugs
This commit is contained in:
@@ -43,16 +43,7 @@ describe('POST /tasks', () => {
|
||||
})).to.eventually.be.rejected.and.eql({
|
||||
code: 400,
|
||||
error: 'BadRequest',
|
||||
});
|
||||
});
|
||||
|
||||
it('ignores setting userId field', () => {
|
||||
return api.post('/tasks', {
|
||||
text: 'test habit',
|
||||
type: 'habit',
|
||||
userId: 123,
|
||||
}).then((task) => {
|
||||
expect(task.userId).to.equal(user._id);
|
||||
message: 'habit validation failed',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user