We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
eslint
Learn more about funding links in repositories.
Report abuse
1 parent dd56631 commit 921ba1eCopy full SHA for 921ba1e
tests/fixtures/rules/wrong/custom-rule.js
@@ -1,5 +1,3 @@
1
module.exports = function() {
2
-
3
- "use strict";
4
- return (null).something;
+ throw new Error("Boom!");
5
};
tests/lib/cli.js
@@ -512,7 +512,7 @@ describe("cli", () => {
512
const exit = await cli.execute(code);
513
514
assert.strictEqual(exit, 2);
515
- }, /Error while loading rule 'custom-rule': Cannot read property/u);
+ }, /Error while loading rule 'custom-rule': Boom!/u);
516
});
517
518
it("should return a warning when rule is matched", async () => {
0 commit comments