Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Sep 17, 2019
1 parent 308cd1a commit cf5befc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cli-engine/config-array/ignore-pattern.js
Expand Up @@ -38,7 +38,7 @@ const path = require("path");
const ignore = require("ignore");
const debug = require("debug")("eslint:ignore-pattern");

// debug.enabled = true;
debug.enabled = true;

/** @typedef {ReturnType<import("ignore").default>} Ignore */

Expand Down Expand Up @@ -73,7 +73,7 @@ function getCommonAncestorPath(sourcePaths) {
}
}

return result;
return result || path.sep;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/cli-engine/cli-engine.js
Expand Up @@ -1324,7 +1324,7 @@ describe("CLIEngine", () => {
assert.strictEqual(report.results[0].fixableWarningCount, 0);
});

it("should return two messages when given a file in excluded files list while ignore is off", () => {
it.only("should return two messages when given a file in excluded files list while ignore is off", () => {

engine = new CLIEngine({
ignorePath: getFixturePath(".eslintignore"),
Expand Down

0 comments on commit cf5befc

Please sign in to comment.