wip: fix tests

This commit is contained in:
Evan You 2021-04-26 17:35:30 -04:00
parent 5913e01d6b
commit 3e815be24e

View File

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