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
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
@@ -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.