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