test: fix missed warning assertion

This commit is contained in:
Evan You 2025-03-07 20:25:08 +08:00
parent e9d912a188
commit bb50640a70
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 2 additions and 0 deletions

View File

@ -35,8 +35,10 @@ describe('api: createVaporApp', () => {
const root1 = document.createElement('div')
createVaporApp(Comp).mount(root1)
expect(root1.innerHTML).toBe(`0`)
//#5571 mount multiple apps to the same host element
createVaporApp(Comp).mount(root1)
expect(`mount target container is not empty`).toHaveBeenWarned()
expect(
`There is already an app instance mounted on the host container`,
).toHaveBeenWarned()