mirror of https://github.com/vuejs/core.git
test: fix context.attrs test case
This commit is contained in:
parent
b3282028bb
commit
b788c03992
|
@ -117,6 +117,8 @@ describe('api: setup context', () => {
|
||||||
const Child = {
|
const Child = {
|
||||||
// explicit empty props declaration
|
// explicit empty props declaration
|
||||||
// puts everything received in attrs
|
// puts everything received in attrs
|
||||||
|
// disable implicit fallthrough
|
||||||
|
inheritAttrs: false,
|
||||||
props: {},
|
props: {},
|
||||||
setup(props: any, { attrs }: any) {
|
setup(props: any, { attrs }: any) {
|
||||||
return () => h('div', attrs)
|
return () => h('div', attrs)
|
||||||
|
|
Loading…
Reference in New Issue