Skip to content

Commit

Permalink
[Refactor] Use arrow function in nodeOrNodes map
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyerburgh authored and ljharb committed Dec 9, 2017
1 parent 7cb7a06 commit 2f299d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/enzyme/src/ReactWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class ReactWrapper {
? other => containsChildrenSubArray(
nodeEqual,
other,
nodeOrNodes.map(adapter.elementToNode),
nodeOrNodes.map(node => adapter.elementToNode(node)),
)
: other => nodeEqual(adapter.elementToNode(nodeOrNodes), other);

Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme/src/ShallowWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class ShallowWrapper {
? other => containsChildrenSubArray(
nodeEqual,
other,
nodeOrNodes.map(adapter.elementToNode),
nodeOrNodes.map(node => adapter.elementToNode(node)),
)
: other => nodeEqual(adapter.elementToNode(nodeOrNodes), other);

Expand Down

0 comments on commit 2f299d1

Please sign in to comment.