From e8b10dbaab01203a29c7b4e8b48ea7ed55b298ff Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Wed, 31 May 2017 16:06:26 -0300 Subject: [PATCH] Fix colors for expected/stored snapshot message --- packages/jest-snapshot/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jest-snapshot/src/index.js b/packages/jest-snapshot/src/index.js index 37a80f2bbac3..bbcb1ea90cd6 100644 --- a/packages/jest-snapshot/src/index.js +++ b/packages/jest-snapshot/src/index.js @@ -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,