Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove object spread to continue Node LTS 10/12 support #304

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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