From a78c0ff7724d964e05c60f3f2b325cdc97f379d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Thu, 14 Nov 2019 08:29:26 -0300 Subject: [PATCH] Do not lower-case css values for comparison in toHaveValues --- src/to-have-style.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/to-have-style.js b/src/to-have-style.js index f78272ef..f4190d85 100644 --- a/src/to-have-style.js +++ b/src/to-have-style.js @@ -19,8 +19,7 @@ function getStyleDeclaration(document, css) { function isSubset(styles, computedStyle) { return Object.entries(styles).every( ([prop, value]) => - computedStyle.getPropertyValue(prop.toLowerCase()) === - value.toLowerCase(), + computedStyle.getPropertyValue(prop.toLowerCase()) === value ) }