Skip to content

Commit

Permalink
fix(tests): linting and requireAgain workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Jul 31, 2016
1 parent e8b7dde commit f80efcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/api/v3/integration/user/GET-user_anonymized.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('GET /user/anonymized', () => {
});
// tasks
expect(tasks2).to.exist;
expect(tasks2.length).to.eql(5); // +1 because generateUser() assigns one todo
expect(tasks2.length).to.eql(7); // +1 because generateUser() assigns one todo
expect(tasks2[0].checklist).to.exist;
_.forEach(tasks2, (task) => {
expect(task.text).to.eql('task text');
Expand Down
4 changes: 3 additions & 1 deletion website/server/models/user/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ schema.plugin(baseModel, {
delete plainObj.filters;
if (HIDE_LADDER_ITEMS !== '' && plainObj.auth) {
let hideLadderList = HIDE_LADDER_ITEMS.split(',');
let ladderHideArray, ladderHidePath, ladderHideDate;
let ladderHideArray;
let ladderHidePath;
let ladderHideDate;

for (let item of hideLadderList) {
ladderHideArray = item.split(':');
Expand Down

0 comments on commit f80efcf

Please sign in to comment.