Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Format non-regression errors for legibility (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh authored and hzoo committed Mar 23, 2017
1 parent 7972a05 commit eb05812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/non-regression.js
Expand Up @@ -31,7 +31,7 @@ function verifyAndAssertMessages(code, rules, expectedMessages, sourceType, over
var messages = eslint.linter.verify(code, config);

if (messages.length !== expectedMessages.length) {
throw new Error(`Expected ${expectedMessages.length} message(s), got ${messages.length} ${JSON.stringify(messages)}`);
throw new Error(`Expected ${expectedMessages.length} message(s), got ${messages.length}\n${JSON.stringify(messages, null, 2)}`);
}

messages.forEach((message, i) => {
Expand Down

0 comments on commit eb05812

Please sign in to comment.