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

Commit eb05812

Browse files
zertoshhzoo
authored andcommitted
Format non-regression errors for legibility (#451)
1 parent 7972a05 commit eb05812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/non-regression.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function verifyAndAssertMessages(code, rules, expectedMessages, sourceType, over
3131
var messages = eslint.linter.verify(code, config);
3232

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

3737
messages.forEach((message, i) => {

0 commit comments

Comments
 (0)