Skip to content

Commit f580667

Browse files
committed
test: ensure avoiding output within passing tests
1 parent fe637d5 commit f580667

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/rules/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ const ruleTester = new RuleTester();
8080
if (assertion.errors) {
8181
throw new Error(`Valid assertions for rule ${ruleName} should not have an \`errors\` array.`);
8282
}
83+
if (assertion.output) {
84+
throw new Error(`Valid assertions for rule ${ruleName} should not have an \`output\` property.`);
85+
}
8386
assertion.parserOptions = _.defaultsDeep(assertion.parserOptions, parserOptions);
8487

8588
return assertion;

0 commit comments

Comments
 (0)