Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
test: include actual result in error messages
Remove expected result from error message and include actual result for clarity and easier debugging.
  • Loading branch information
keywordnew committed Oct 7, 2017
commit 20efb5ad33477b1d86a0db1b5c6ca9eb2fb9eacf
4 changes: 2 additions & 2 deletions test/doctool/test-doctool-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ testData.forEach((item) => {
// an analytics id is provided. Should not be present by default
if (includeAnalytics) {
assert(actual.includes(scriptDomain),
'Google Analytics script was not present, but it should be');
`Google Analytics script was not present in "${actual}"`);
} else {
assert.strictEqual(actual.includes(scriptDomain), false,
'Google Analytics script was present, but it should not be');
`Google Analytics script was present in "${actual}"`);
}
}));
}));
Expand Down