Skip to content

Commit bb50640

Browse files
committed
test: fix missed warning assertion
1 parent e9d912a commit bb50640

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime-vapor/__tests__/apiCreateVaporApp.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ describe('api: createVaporApp', () => {
3535
const root1 = document.createElement('div')
3636
createVaporApp(Comp).mount(root1)
3737
expect(root1.innerHTML).toBe(`0`)
38+
3839
//#5571 mount multiple apps to the same host element
3940
createVaporApp(Comp).mount(root1)
41+
expect(`mount target container is not empty`).toHaveBeenWarned()
4042
expect(
4143
`There is already an app instance mounted on the host container`,
4244
).toHaveBeenWarned()

0 commit comments

Comments
 (0)