Skip to content

Commit

Permalink
Fix test error messages (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddzz committed Nov 27, 2021
1 parent 1d7a6b6 commit e05fbe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils/snapshot-rule-tester.mjs
Expand Up @@ -139,7 +139,7 @@ class SnapshotRuleTester {
`,
t => {
const messages = linter.verify(code, verifyConfig, {filename});
t.deepEqual(messages, [], 'Valid case should not has errors.');
t.deepEqual(messages, [], 'Valid case should not have errors.');
},
);
}
Expand All @@ -156,7 +156,7 @@ class SnapshotRuleTester {
`,
t => {
const messages = linter.verify(code, verifyConfig, {filename});
t.notDeepEqual(messages, [], 'Invalid case should has at least one error.');
t.notDeepEqual(messages, [], 'Invalid case should have at least one error.');

const fatalError = messages.find(({fatal}) => fatal);
if (fatalError) {
Expand Down

0 comments on commit e05fbe7

Please sign in to comment.