Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
test: try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Aug 22, 2019
1 parent ef26ede commit acfddd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Linter.js
Expand Up @@ -102,6 +102,11 @@ export default class Linter {
}

autoFix(res) {
// eslint-disable-next-line
console.log(res.results[0].fixableErrorCount);
// eslint-disable-next-line
console.log(res.results[0].fixableWarningCount);

if (
res.results[0].output !== res.src ||
res.results[0].fixableErrorCount > 0 ||
Expand Down
6 changes: 4 additions & 2 deletions test/autofix-stop.test.js
Expand Up @@ -10,8 +10,10 @@ describe('autofix stop', () => {

beforeAll(() => {
fs.copyFileSync('./test/fixtures/nonfixable.js', entry);
fs.watch(entry, {}, () => {
changed = true;
fs.watch(entry, {}, (eventType, filename) => {
if (eventType === 'change' && filename) {
changed = true;
}
});
});

Expand Down

0 comments on commit acfddd0

Please sign in to comment.