diff --git a/packages/runtime-core/__tests__/apiCreateApp.spec.ts b/packages/runtime-core/__tests__/apiCreateApp.spec.ts index c3be3476c..47e0eb6fa 100644 --- a/packages/runtime-core/__tests__/apiCreateApp.spec.ts +++ b/packages/runtime-core/__tests__/apiCreateApp.spec.ts @@ -58,6 +58,11 @@ describe('api: createApp', () => { const root = nodeOps.createElement('div') const app = createApp(Comp) + + // warning + app.unmount(root) + expect(`that is not mounted`).toHaveBeenWarned() + app.mount(root) app.unmount(root) @@ -92,6 +97,11 @@ describe('api: createApp', () => { app.mount(root) expect(serializeInner(root)).toBe(`3,2`) expect('[Vue warn]: injection "__proto__" not found.').toHaveBeenWarned() + + const app2 = createApp(Root) + app2.provide('bar', 1) + app2.provide('bar', 2) + expect(`App already provides property with key "bar".`).toHaveBeenWarned() }) test('component', () => {