Skip to content

Commit c7a4c52

Browse files
author
Camilo QS
authored
Remove object spread to continue Node LTS 10/12 support (#304)
1 parent dd0da1b commit c7a4c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/toHaveStyleRule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function toHaveStyleRule(component, property, expected) {
1414
* Merge all styles into one final style object and search for the desired
1515
* stylename against this object
1616
*/
17-
const mergedStyles = styles.reduce((acc, item) => ({ ...acc, ...item }), {})
17+
const mergedStyles = styles.reduce((acc, item) => (Object.assign({}, acc, item )), {})
1818
const received = mergedStyles[camelCasedProperty]
1919
const pass =
2020
!received && !expected && this.isNot

0 commit comments

Comments
 (0)