mirror of https://github.com/vuejs/core.git
test: fix missed warning assertion
This commit is contained in:
parent
e9d912a188
commit
bb50640a70
|
@ -35,8 +35,10 @@ describe('api: createVaporApp', () => {
|
||||||
const root1 = document.createElement('div')
|
const root1 = document.createElement('div')
|
||||||
createVaporApp(Comp).mount(root1)
|
createVaporApp(Comp).mount(root1)
|
||||||
expect(root1.innerHTML).toBe(`0`)
|
expect(root1.innerHTML).toBe(`0`)
|
||||||
|
|
||||||
//#5571 mount multiple apps to the same host element
|
//#5571 mount multiple apps to the same host element
|
||||||
createVaporApp(Comp).mount(root1)
|
createVaporApp(Comp).mount(root1)
|
||||||
|
expect(`mount target container is not empty`).toHaveBeenWarned()
|
||||||
expect(
|
expect(
|
||||||
`There is already an app instance mounted on the host container`,
|
`There is already an app instance mounted on the host container`,
|
||||||
).toHaveBeenWarned()
|
).toHaveBeenWarned()
|
||||||
|
|
Loading…
Reference in New Issue