We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65d6de commit 0cddde6Copy full SHA for 0cddde6
packages/runtime-core/__tests__/apiCreateApp.spec.ts
@@ -58,6 +58,11 @@ describe('api: createApp', () => {
58
59
const root = nodeOps.createElement('div')
60
const app = createApp(Comp)
61
+
62
+ // warning
63
+ app.unmount(root)
64
+ expect(`that is not mounted`).toHaveBeenWarned()
65
66
app.mount(root)
67
68
app.unmount(root)
@@ -92,6 +97,11 @@ describe('api: createApp', () => {
92
97
93
98
expect(serializeInner(root)).toBe(`3,2`)
94
99
expect('[Vue warn]: injection "__proto__" not found.').toHaveBeenWarned()
100
101
+ const app2 = createApp(Root)
102
+ app2.provide('bar', 1)
103
+ app2.provide('bar', 2)
104
+ expect(`App already provides property with key "bar".`).toHaveBeenWarned()
95
105
})
96
106
107
test('component', () => {
0 commit comments