refactor(runtime-core): tweak component proxy implementation

This commit is contained in:
Evan You
2019-12-10 11:14:29 -05:00
parent d1527fbee4
commit c97d83aff2
14 changed files with 133 additions and 64 deletions

View File

@@ -310,7 +310,7 @@ describe('api: createApp', () => {
const handler = (app.config.warnHandler = jest.fn(
(msg, instance, trace) => {
expect(msg).toMatch(`Component is missing template or render function`)
expect(instance).toBe(ctx.renderProxy)
expect(instance).toBe(ctx.proxy)
expect(trace).toMatch(`Hello`)
}
))