test: test runtime compilation error warning
This commit is contained in:
@@ -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`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user