add tags routes, misc fixes

This commit is contained in:
Matteo Pagliazzi
2015-12-03 19:19:53 +01:00
parent c0a99eec8b
commit a6648fc638
4 changed files with 117 additions and 9 deletions

View File

@@ -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);
});
});
});
});