File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ class ReactWrapper {
186186 * @return {Array<ReactElement> }
187187 */
188188 getElements ( ) {
189- return this [ NODES ] . map ( getAdapter ( this [ OPTIONS ] ) . nodeToElement ) ;
189+ return this [ NODES ] . map ( n => getAdapter ( this [ OPTIONS ] ) . nodeToElement ( n ) ) ;
190190 }
191191
192192 // eslint-disable-next-line class-methods-use-this
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ class ShallowWrapper {
480480 * @return {Array<ReactElement> }
481481 */
482482 getElements ( ) {
483- return this . getNodesInternal ( ) . map ( getAdapter ( this [ OPTIONS ] ) . nodeToElement ) ;
483+ return this . getNodesInternal ( ) . map ( n => getAdapter ( this [ OPTIONS ] ) . nodeToElement ( n ) ) ;
484484 }
485485
486486 // eslint-disable-next-line class-methods-use-this
You can’t perform that action at this time.
0 commit comments