Skip to content

Commit

Permalink
Remove object spread to continue Node LTS 10/12 support (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Camilo QS committed Mar 17, 2020
1 parent dd0da1b commit c7a4c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native/toHaveStyleRule.js
Expand Up @@ -14,7 +14,7 @@ function toHaveStyleRule(component, property, expected) {
* Merge all styles into one final style object and search for the desired
* stylename against this object
*/
const mergedStyles = styles.reduce((acc, item) => ({ ...acc, ...item }), {})
const mergedStyles = styles.reduce((acc, item) => (Object.assign({}, acc, item )), {})
const received = mergedStyles[camelCasedProperty]
const pass =
!received && !expected && this.isNot
Expand Down

0 comments on commit c7a4c52

Please sign in to comment.