change tasks routes to /tasks/(user|challenge)

This commit is contained in:
Matteo Pagliazzi
2016-01-06 18:40:11 +01:00
parent 2b2dcfe7ce
commit 8ba486ec12
13 changed files with 248 additions and 158 deletions

View File

@@ -17,7 +17,7 @@ describe('GET /tasks/:id', () => {
let task;
beforeEach(() => {
return user.post('/tasks?tasksOwner=user', {
return user.post('/tasks/user', {
text: 'test habit',
type: 'habit',
}).then((createdTask) => {
@@ -54,7 +54,7 @@ describe('GET /tasks/:id', () => {
.then((user2) => {
anotherUser = user2;
return user.post('/tasks?tasksOwner=user', {
return user.post('/tasks/user', {
text: 'test habit',
type: 'habit',
});