Skip to content
Permalink
Browse files
Chore: fix failing cli test (#15041)
  • Loading branch information
mdjermanovic committed Sep 9, 2021
1 parent dd56631 commit 921ba1ee53e5f2219f09050565b8d69fab517d72
Showing with 2 additions and 4 deletions.
  1. +1 −3 tests/fixtures/rules/wrong/custom-rule.js
  2. +1 −1 tests/lib/cli.js
@@ -1,5 +1,3 @@
module.exports = function() {

"use strict";
return (null).something;
throw new Error("Boom!");
};
@@ -512,7 +512,7 @@ describe("cli", () => {
const exit = await cli.execute(code);

assert.strictEqual(exit, 2);
}, /Error while loading rule 'custom-rule': Cannot read property/u);
}, /Error while loading rule 'custom-rule': Boom!/u);
});

it("should return a warning when rule is matched", async () => {

0 comments on commit 921ba1e

Please sign in to comment.