adapt v2: fix linting

This commit is contained in:
Matteo Pagliazzi
2016-04-03 19:04:54 +02:00
parent cc65bb1ed7
commit 060e3b1045
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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`);