mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
adapt current tests and change urls to avoid conflicts
This commit is contained in:
@@ -16,7 +16,7 @@ describe('DELETE /tasks/:id', () => {
|
||||
let task;
|
||||
|
||||
beforeEach(() => {
|
||||
return user.post('/tasks', {
|
||||
return user.post('/tasks?tasksOwner=user', {
|
||||
text: 'test habit',
|
||||
type: 'habit',
|
||||
}).then((createdTask) => {
|
||||
@@ -48,7 +48,7 @@ describe('DELETE /tasks/:id', () => {
|
||||
it('cannot delete a task owned by someone else', () => {
|
||||
return generateUser()
|
||||
.then((anotherUser) => {
|
||||
return anotherUser.post('/tasks', {
|
||||
return anotherUser.post('/tasks?tasksOwner=user', {
|
||||
text: 'test habit',
|
||||
type: 'habit',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user