Skip to content

Commit

Permalink
Clean up jscs errors in /tests/api/v1/tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo committed Dec 29, 2016
1 parent d7ac1d9 commit 7cd2677
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/api/v1/tokens/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ describe(`api: DELETE ${path}`, () => {
.expect(constants.httpStatus.NOT_FOUND)
.end(() => done());
});
});
});
2 changes: 1 addition & 1 deletion tests/api/v1/tokens/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ describe(`api: GET ${path}`, () => {
.expect(constants.httpStatus.NOT_FOUND)
.end(() => done());
});
});
});
2 changes: 1 addition & 1 deletion tests/api/v1/tokens/revokeRestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ describe(`api: POST ${path}/:id/revoke and POST ${path}/:id/restore`, () => {
}
});
});
});
});
6 changes: 3 additions & 3 deletions tests/api/v1/tokens/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ module.exports = {
fakeUserCredentials: {
email: 'user1@abc.com',
password: 'fakePasswd',
username: 'user1@abc.com'
username: 'user1@abc.com',
},
forceDelete(done) {
tu.forceDelete(tu.db.Token, testStartTime)
.then(() => tu.forceDelete(tu.db.User, testStartTime))
.then(() => tu.forceDelete(tu.db.Profile, testStartTime))
.then(() => done())
.catch((err) => done(err));
.catch(done);
},
};
};

0 comments on commit 7cd2677

Please sign in to comment.