mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix linting and add pending test
This commit is contained in:
@@ -63,5 +63,6 @@ describe('DELETE /tasks/:id', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('cannot delete active challenge tasks'); // TODO after challenges are implemented
|
it('cannot delete active challenge tasks'); // TODO after challenges are implemented
|
||||||
|
it('remove a task from user.tasksOrder'); // TODO
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ describe('POST /tasks', () => {
|
|||||||
text: 'an habit',
|
text: 'an habit',
|
||||||
}, {
|
}, {
|
||||||
type: 'habit',
|
type: 'habit',
|
||||||
text: 'another habit'
|
text: 'another habit',
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
let updatedUser = await user.get('/user');
|
let updatedUser = await user.get('/user');
|
||||||
@@ -302,7 +302,7 @@ describe('POST /tasks', () => {
|
|||||||
text: 'a todo',
|
text: 'a todo',
|
||||||
}, {
|
}, {
|
||||||
type: 'todo',
|
type: 'todo',
|
||||||
text: 'another todo'
|
text: 'another todo',
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
let updatedUser = await user.get('/user');
|
let updatedUser = await user.get('/user');
|
||||||
@@ -392,7 +392,7 @@ describe('POST /tasks', () => {
|
|||||||
text: 'a daily',
|
text: 'a daily',
|
||||||
}, {
|
}, {
|
||||||
type: 'daily',
|
type: 'daily',
|
||||||
text: 'another daily'
|
text: 'another daily',
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
let updatedUser = await user.get('/user');
|
let updatedUser = await user.get('/user');
|
||||||
@@ -532,7 +532,7 @@ describe('POST /tasks', () => {
|
|||||||
text: 'a reward',
|
text: 'a reward',
|
||||||
}, {
|
}, {
|
||||||
type: 'reward',
|
type: 'reward',
|
||||||
text: 'another reward'
|
text: 'another reward',
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
let updatedUser = await user.get('/user');
|
let updatedUser = await user.get('/user');
|
||||||
|
|||||||
Reference in New Issue
Block a user