Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Oct 17, 2018
1 parent 7eb3861 commit 2b69c3b
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions tests/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,35 +775,6 @@ describe("cli", () => {

});

it("should pass fixTypes to CLIEngine when --fix-type is passed", () => {

const expectedCLIEngineOptions = {
fix: true,
fixTypes: ["suggestion"]
};

// create a fake CLIEngine to test with
const fakeCLIEngine = sandbox.mock().withExactArgs(sinon.match(expectedCLIEngineOptions));

fakeCLIEngine.prototype = leche.fake(CLIEngine.prototype);
sandbox.stub(fakeCLIEngine.prototype, "executeOnFiles").returns({
errorCount: 0,
warningCount: 0,
results: []
});
sandbox.stub(fakeCLIEngine.prototype, "getFormatter").returns(() => "done");
fakeCLIEngine.outputFixes = sandbox.stub();

localCLI = proxyquire("../../lib/cli", {
"./cli-engine": fakeCLIEngine,
"./util/logging": log
});

const exitCode = localCLI.execute("--fix --fix-type suggestion .");

assert.strictEqual(exitCode, 0);

});

it("should rewrite files when in fix mode", () => {

Expand Down Expand Up @@ -956,7 +927,7 @@ describe("cli", () => {

assert.strictEqual(exitCode, 0);
});

it("should not rewrite files when in fix-dry-run mode", () => {

const report = {
Expand Down

0 comments on commit 2b69c3b

Please sign in to comment.