Skip to content

Commit

Permalink
test(warnings): Fix assertion message for warnings (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Jan 8, 2018
1 parent 23194a4 commit 7a3b198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Object.keys(config).forEach(presetName => {
const { errors, warnings } = validateConfig(config[presetName]);

assert(errors.length === 0, `Preset '${presetName}' contains errors:\n\n${JSON.stringify(errors, null, 2)}`);
assert(warnings.length === 0, `Preset '${presetName}' contains errors:\n\n${JSON.stringify(warnings, null, 2)}`);
assert(warnings.length === 0, `Preset '${presetName}' contains warnings:\n\n${JSON.stringify(warnings, null, 2)}`);
});

0 comments on commit 7a3b198

Please sign in to comment.