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

Format non-regression errors for legibility #451

Merged
merged 1 commit into from
Mar 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/non-regression.js
Original file line number Diff line number Diff line change
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