Skip to content

Commit 921ba1e

Browse files
authoredSep 9, 2021
Chore: fix failing cli test (#15041)
1 parent dd56631 commit 921ba1e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 
+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module.exports = function() {
2-
3-
"use strict";
4-
return (null).something;
2+
throw new Error("Boom!");
53
};

‎tests/lib/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ describe("cli", () => {
512512
const exit = await cli.execute(code);
513513

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.