From e7aee1846fc40f296f35de265085b14ca82d3b34 Mon Sep 17 00:00:00 2001 From: Paolo Priotto Date: Tue, 28 Nov 2023 16:24:55 +0100 Subject: [PATCH] fix: make the test pass please combine me with the previous commit using "squash+merge" --- src/to-have-style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/to-have-style.js b/src/to-have-style.js index f125450c..066a0c75 100644 --- a/src/to-have-style.js +++ b/src/to-have-style.js @@ -20,7 +20,7 @@ function isSubset(styles, computedStyle) { Object.entries(styles).every( ([prop, value]) => computedStyle[prop] === value || - computedStyle.getPropertyValue(prop.toLowerCase()) === value, + computedStyle.getPropertyValue(prop) === value, ) ) }