Skip to content

Commit

Permalink
Fix colors for expected/stored snapshot message (jestjs#3702)
Browse files Browse the repository at this point in the history
  • Loading branch information
duailibe authored and cpojer committed May 31, 2017
1 parent 8b5fe46 commit 4182d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-snapshot/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ const toMatchSnapshot = function(received: any, testName?: string) {
`${RECEIVED_COLOR('Received value')} does not match ` +
`${EXPECTED_COLOR('stored snapshot ' + count)}.\n\n` +
(diffMessage ||
RECEIVED_COLOR('- ' + (expected || '')) +
EXPECTED_COLOR('- ' + (expected || '')) +
'\n' +
EXPECTED_COLOR('+ ' + actual));
RECEIVED_COLOR('+ ' + actual));
}
// Passing the the actual and expected objects so that a custom reporter
// could access them, for example in order to display a custom visual diff,
Expand Down

0 comments on commit 4182d85

Please sign in to comment.