Explorar o código

test: fix context.attrs test case

Evan You %!s(int64=6) %!d(string=hai) anos
pai
achega
b788c03992
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/runtime-core/__tests__/apiSetupContext.spec.ts

+ 2 - 0
packages/runtime-core/__tests__/apiSetupContext.spec.ts

@@ -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)