test: fix context.attrs test case

This commit is contained in:
Evan You 2019-10-26 10:31:36 -04:00
parent b3282028bb
commit b788c03992

View File

@ -117,6 +117,8 @@ describe('api: setup context', () => {
const Child = {
// explicit empty props declaration
// puts everything received in attrs
// disable implicit fallthrough
inheritAttrs: false,
props: {},
setup(props: any, { attrs }: any) {
return () => h('div', attrs)