mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
adapt v2: fix linting
This commit is contained in:
@@ -14,7 +14,7 @@ describe('GET /user/tasks/', () => {
|
|||||||
it('gets all tasks', async () => {
|
it('gets all tasks', async () => {
|
||||||
return user.get(`/user/tasks/`).then((tasks) => {
|
return user.get(`/user/tasks/`).then((tasks) => {
|
||||||
expect(tasks).to.be.an('array');
|
expect(tasks).to.be.an('array');
|
||||||
expect(tasks.length).to.equal(1)
|
expect(tasks.length).to.equal(1);
|
||||||
|
|
||||||
let task = tasks[0];
|
let task = tasks[0];
|
||||||
expect(task.id).to.exist;
|
expect(task.id).to.exist;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {
|
|||||||
generateUser,
|
generateUser,
|
||||||
} from '../../../../helpers/api-integration/v2';
|
} from '../../../../helpers/api-integration/v2';
|
||||||
|
|
||||||
describe.only('POST /user/tasks/clear-completed', () => {
|
describe('POST /user/tasks/clear-completed', () => {
|
||||||
let user;
|
let user;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
@@ -17,7 +17,7 @@ describe.only('POST /user/tasks/clear-completed', () => {
|
|||||||
text: 'done',
|
text: 'done',
|
||||||
});
|
});
|
||||||
|
|
||||||
await user.post(`/user/tasks/${toComplete._id}/up`)
|
await user.post(`/user/tasks/${toComplete._id}/up`);
|
||||||
|
|
||||||
let todos = await user.get(`/user/tasks?type=todo`);
|
let todos = await user.get(`/user/tasks?type=todo`);
|
||||||
let uncomplete = await user.post(`/user/tasks/clear-completed`);
|
let uncomplete = await user.post(`/user/tasks/clear-completed`);
|
||||||
|
|||||||
Reference in New Issue
Block a user