Skip to content

Commit 0c76a4f

Browse files
committed
test: add test case
1 parent c9f53cc commit 0c76a4f

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

packages/vue/__tests__/e2e/Transition.spec.ts

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,9 +1503,7 @@ describe('e2e: Transition', () => {
15031503
'avoid unmount activeBranch twice with Suspense (out-in mode + timeout="0")',
15041504
async () => {
15051505
const unmountSpy = vi.fn()
1506-
15071506
await page().exposeFunction('unmountSpy', unmountSpy)
1508-
15091507
await page().evaluate(() => {
15101508
const { createApp, shallowRef, h } = (window as any).Vue
15111509
const One = {
@@ -1527,19 +1525,19 @@ describe('e2e: Transition', () => {
15271525
}
15281526
createApp({
15291527
template: `
1530-
<div id="container">
1531-
<transition mode="out-in">
1532-
<suspense timeout="0">
1533-
<template #default>
1534-
<component :is="view"></component>
1535-
</template>
1536-
<template #fallback>
1537-
<div>Loading...</div>
1538-
</template>
1539-
</suspense>
1540-
</transition>
1541-
</div>
1542-
<button id="toggleBtn" @click="click">button</button>
1528+
<div id="container">
1529+
<transition mode="out-in">
1530+
<suspense timeout="0">
1531+
<template #default>
1532+
<component :is="view"></component>
1533+
</template>
1534+
<template #fallback>
1535+
<div>Loading...</div>
1536+
</template>
1537+
</suspense>
1538+
</transition>
1539+
</div>
1540+
<button id="toggleBtn" @click="click">button</button>
15431541
`,
15441542
setup: () => {
15451543
const view = shallowRef(One)

0 commit comments

Comments
 (0)