Skip to content

Commit

Permalink
Trim CSS property values
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Sachs authored and Patrick-Sachs committed Nov 23, 2021
1 parent 2a3070f commit c6b8737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chai-dom.js
Expand Up @@ -387,7 +387,7 @@
chai.Assertion.addMethod('style', function (styleProp, styleValue) {
var el = flag(this, 'object'),
style = window.getComputedStyle(el),
actual = style.getPropertyValue(styleProp);
actual = style.getPropertyValue(styleProp).trim();

this.assert(
actual === styleValue
Expand Down

0 comments on commit c6b8737

Please sign in to comment.