Skip to content

Commit 9b94176

Browse files
committed
fix functional test
1 parent 1fb227c commit 9b94176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/features/options/functional.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Options functional', () => {
1010
functional: true,
1111
props: ['msg'],
1212
render (h, { props, children }) {
13-
return h('div', null, [props.msg, ' '].concat(children))
13+
return h('div', null, [props.msg, ' '].concat(children()))
1414
}
1515
}
1616
}
@@ -36,7 +36,7 @@ describe('Options functional', () => {
3636
functional: true,
3737
props: ['field'],
3838
render (h, { props, children, data: { on } }) {
39-
props.child = children[0]
39+
props.child = children()[0]
4040
return h('validate-control', { props, on })
4141
}
4242
},

0 commit comments

Comments
 (0)