]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: fix context.attrs test case
authorEvan You <yyx990803@gmail.com>
Sat, 26 Oct 2019 14:31:36 +0000 (10:31 -0400)
committerEvan You <yyx990803@gmail.com>
Sat, 26 Oct 2019 14:31:36 +0000 (10:31 -0400)
packages/runtime-core/__tests__/apiSetupContext.spec.ts

index d0602fc99fcf4bcc90fd5d884827585063326d44..b9876870ac8378190bd748bd6236e94382a4e2a7 100644 (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)