Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Fix color output of fixer test (#1901)
Browse files Browse the repository at this point in the history
Fixes: #1832
  • Loading branch information
ajafff authored and nchen63 committed Dec 19, 2016
1 parent 5c9d7c1 commit bea8193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function consoleTestResultHandler(testResult: TestResult): boolean {
process.stdout.write(`${fileName}:`);

const markupDiffResults = diff.diffLines(results.markupFromMarkup, results.markupFromLinter);
const fixesDiffResults = diff.diffLines(results.fixesFromMarkup, results.fixesFromLinter);
const fixesDiffResults = diff.diffLines(results.fixesFromLinter, results.fixesFromMarkup);
const didMarkupTestPass = !markupDiffResults.some((diff) => diff.added || diff.removed);
const didFixesTestPass = !fixesDiffResults.some((diff) => diff.added || diff.removed);

Expand Down

0 comments on commit bea8193

Please sign in to comment.