Skip to content

Commit

Permalink
Show recieved CSS in error message if no match
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Jan 9, 2024
1 parent 342b13c commit 966056b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ expect.extend({
normalisedReceivedCSS.code.toString() !==
normalisedExpectedCSS.code.toString()
) {
throw new Error('Received CSS does not match expected CSS.');
throw new Error(
'Received CSS does not match expected CSS\n\n' +
normalisedReceivedCSS.code.toString(),
);
}

return {
Expand Down

0 comments on commit 966056b

Please sign in to comment.