From: Evan You Date: Mon, 26 Apr 2021 21:35:30 +0000 (-0400) Subject: wip: fix tests X-Git-Tag: v3.1.0-beta.1~59^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e815be24e9fc7febade100a4a9fd80fdfaf071b;p=thirdparty%2Fvuejs%2Fcore.git wip: fix tests --- diff --git a/packages/runtime-core/__tests__/componentPublicInstance.spec.ts b/packages/runtime-core/__tests__/componentPublicInstance.spec.ts index 51dd676e6e..4411771ae3 100644 --- a/packages/runtime-core/__tests__/componentPublicInstance.spec.ts +++ b/packages/runtime-core/__tests__/componentPublicInstance.spec.ts @@ -93,9 +93,7 @@ describe('component: proxy', () => { expect(instanceProxy.$root).toBe(instance!.root.proxy) expect(instanceProxy.$emit).toBe(instance!.emit) expect(instanceProxy.$el).toBe(instance!.vnode.el) - expect(instanceProxy.$options).toBe( - (instance!.type as ComponentOptions).__merged - ) + expect(instanceProxy.$options).toBe(instance!.type as ComponentOptions) expect(() => (instanceProxy.$data = {})).toThrow(TypeError) expect(`Attempting to mutate public property "$data"`).toHaveBeenWarned()