Skip to content

Commit

Permalink
Fix code and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerand committed Sep 5, 2017
1 parent 5c376b4 commit 9d4f45b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/scanners/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class JavaScriptScanner {

Object.keys(_rules).forEach((name) => {
this._rulesProcessed++;
_ESLint.linter.defineRule(name, _rules[name]);
cli.linter.defineRule(name, _rules[name]);
});

// ESLint is synchronous and doesn't accept streams, so we need to
Expand Down
6 changes: 3 additions & 3 deletions tests/scanners/test.javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ describe('JavaScript Scanner', () => {
}],
};
},
};

const FakeESLint = {
linter: {
defineRule: () => {
// no-op
},
},
};

const FakeESLint = {
CLIEngine: FakeCLIEngine,
};

Expand Down

0 comments on commit 9d4f45b

Please sign in to comment.