mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
adapt current tests and change urls to avoid conflicts
This commit is contained in:
@@ -16,7 +16,7 @@ describe('PUT /tasks/:id', () => {
|
||||
let task;
|
||||
|
||||
beforeEach(() => {
|
||||
return user.post('/tasks', {
|
||||
return user.post('/tasks?tasksOwner=user', {
|
||||
text: 'test habit',
|
||||
type: 'habit',
|
||||
}).then((createdTask) => {
|
||||
@@ -65,7 +65,7 @@ describe('PUT /tasks/:id', () => {
|
||||
let habit;
|
||||
|
||||
beforeEach(() => {
|
||||
return user.post('/tasks', {
|
||||
return user.post('/tasks?tasksOwner=user', {
|
||||
text: 'test habit',
|
||||
type: 'habit',
|
||||
notes: 1976,
|
||||
@@ -93,7 +93,7 @@ describe('PUT /tasks/:id', () => {
|
||||
let todo;
|
||||
|
||||
beforeEach(() => {
|
||||
return user.post('/tasks', {
|
||||
return user.post('/tasks?tasksOwner=user', {
|
||||
text: 'test todo',
|
||||
type: 'todo',
|
||||
notes: 1976,
|
||||
@@ -150,7 +150,7 @@ describe('PUT /tasks/:id', () => {
|
||||
let daily;
|
||||
|
||||
beforeEach(() => {
|
||||
return user.post('/tasks', {
|
||||
return user.post('/tasks?tasksOwner=user', {
|
||||
text: 'test daily',
|
||||
type: 'daily',
|
||||
notes: 1976,
|
||||
@@ -254,7 +254,7 @@ describe('PUT /tasks/:id', () => {
|
||||
let reward;
|
||||
|
||||
beforeEach(() => {
|
||||
return user.post('/tasks', {
|
||||
return user.post('/tasks?tasksOwner=user', {
|
||||
text: 'test reward',
|
||||
type: 'reward',
|
||||
notes: 1976,
|
||||
|
||||
Reference in New Issue
Block a user