We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
errors
valid
1 parent 8a03a5f commit 154e805Copy full SHA for 154e805
test/rules/index.js
@@ -49,6 +49,9 @@ const ruleTester = new RuleTester();
49
});
50
51
assertions.valid = assertions.valid.map((assertion) => {
52
+ if (assertion.errors) {
53
+ throw new Error(`Valid assertions for rule ${ruleName} should not have an \`errors\` array.`);
54
+ }
55
assertion.parserOptions = _.defaultsDeep(assertion.parserOptions, parserOptions);
56
57
return assertion;
0 commit comments