Skip to content

Commit

Permalink
Chore: message refactore
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Apr 21, 2020
1 parent 2e04403 commit 1276899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rule-tester/rule-tester.js
Expand Up @@ -645,7 +645,7 @@ class RuleTester {
`Did not specify errors for an invalid test of ${ruleName}`);

if (Array.isArray(item.errors) && item.errors.length === 0) {
assert.fail("errors array should have atleast one element otherwise its a valid case");
assert.fail("errors array should have at least one element otherwise its a valid case");
}

const ruleHasMetaMessages = hasOwnProperty(rule, "meta") && hasOwnProperty(rule.meta, "messages");
Expand Down

0 comments on commit 1276899

Please sign in to comment.