From ea3d9cd57a19cf5d7853dad33df9a9142946e742 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 9 Jun 2023 16:04:24 +0200 Subject: [PATCH] compare the correct values in Jest tests --- jest/customMatchers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest/customMatchers.js b/jest/customMatchers.js index ad0b61ef1..8e262bdd0 100644 --- a/jest/customMatchers.js +++ b/jest/customMatchers.js @@ -46,7 +46,7 @@ function toMatchFormattedCss(received = '', argument = '') { ) } : () => { - let diffString = diff(formattedArgument, formattedArgument, { + let diffString = diff(formattedArgument, formattedReceived, { expand: this.expand, })