Skip to content

Commit

Permalink
Chore: fix failing cli test (#15041)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Sep 9, 2021
1 parent dd56631 commit 921ba1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/fixtures/rules/wrong/custom-rule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = function() {

"use strict";
return (null).something;
throw new Error("Boom!");
};
2 changes: 1 addition & 1 deletion tests/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 921ba1e

Please sign in to comment.