test: test runtime compilation error warning

This commit is contained in:
Evan You
2019-10-15 17:50:38 -04:00
parent cf12d18b4b
commit 65a0207c7b
3 changed files with 67 additions and 58 deletions

View File

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