adapt current tests and change urls to avoid conflicts

This commit is contained in:
Matteo Pagliazzi
2016-01-04 22:03:21 +01:00
parent 6680853078
commit 3bc8945bcc
14 changed files with 105 additions and 94 deletions

View File

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