Skip to content

Commit fc7b713

Browse files
committed
add map(replaceBindingComponent)
1 parent d9063eb commit fc7b713

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/test-utils/src/find.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ export default function find (
5858

5959
if (vnode) {
6060
const nodes = findVnodes(vnode, vm, selectorType, selector)
61+
.map(replaceBindingComponent)
6162
if (selectorType !== DOM_SELECTOR) {
6263
return nodes
6364
}
6465
return nodes.length > 0 ? nodes : findDOMNodes(element, selector)
66+
.map(replaceBindingComponent)
6567
}
6668

6769
return findDOMNodes(element, selector)
70+
.map(replaceBindingComponent)
6871
}

0 commit comments

Comments
 (0)