We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd0da1b commit c7a4c52Copy full SHA for c7a4c52
src/native/toHaveStyleRule.js
@@ -14,7 +14,7 @@ function toHaveStyleRule(component, property, expected) {
14
* Merge all styles into one final style object and search for the desired
15
* stylename against this object
16
*/
17
- const mergedStyles = styles.reduce((acc, item) => ({ ...acc, ...item }), {})
+ const mergedStyles = styles.reduce((acc, item) => (Object.assign({}, acc, item )), {})
18
const received = mergedStyles[camelCasedProperty]
19
const pass =
20
!received && !expected && this.isNot
0 commit comments