From: Evan You Date: Sat, 26 Oct 2019 14:31:36 +0000 (-0400) Subject: test: fix context.attrs test case X-Git-Tag: v3.0.0-alpha.0~304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b788c039927df390f4df8a3cb450ecb990f165b1;p=thirdparty%2Fvuejs%2Fcore.git test: fix context.attrs test case --- diff --git a/packages/runtime-core/__tests__/apiSetupContext.spec.ts b/packages/runtime-core/__tests__/apiSetupContext.spec.ts index d0602fc99f..b9876870ac 100644 --- a/packages/runtime-core/__tests__/apiSetupContext.spec.ts +++ b/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)