From e44f4a1bc9a5d139e6ebeeb5c55ee0aae795846a Mon Sep 17 00:00:00 2001 From: daiwei Date: Sat, 1 Feb 2025 09:53:26 +0800 Subject: [PATCH] test: update --- .../runtime-core/__tests__/hydration.spec.ts | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/runtime-core/__tests__/hydration.spec.ts b/packages/runtime-core/__tests__/hydration.spec.ts index 0a3e84b86c..858d77ed50 100644 --- a/packages/runtime-core/__tests__/hydration.spec.ts +++ b/packages/runtime-core/__tests__/hydration.spec.ts @@ -2347,7 +2347,7 @@ describe('SSR hydration', () => { }, template: ` -
foo
+
{{toggle}}
`, } const container = document.createElement('div') @@ -2356,13 +2356,13 @@ describe('SSR hydration', () => { // hydrate createSSRApp(App).mount(container) expect(container.innerHTML).toBe( - 'foo', + 'true', ) triggerEvent('click', container.querySelector('#toggleBtn')!) await nextTick() expect(container.innerHTML).toBe( - '
foo
', + '
false
', ) }) @@ -2378,7 +2378,7 @@ describe('SSR hydration', () => { }, template: ` - foo + {{toggle}} `, } const container = document.createElement('div') @@ -2387,13 +2387,13 @@ describe('SSR hydration', () => { // hydrate createSSRApp(App).mount(container) expect(container.innerHTML).toBe( - 'foo', + 'true', ) triggerEvent('click', container.querySelector('#toggleBtn')!) await nextTick() expect(container.innerHTML).toBe( - '
foo
', + '
false
', ) }) @@ -2409,7 +2409,7 @@ describe('SSR hydration', () => { }, template: ` - foo + {{toggle}} `, } const container = document.createElement('div') @@ -2418,13 +2418,13 @@ describe('SSR hydration', () => { // hydrate createSSRApp(App).mount(container) expect(container.innerHTML).toBe( - 'foo', + 'true', ) triggerEvent('click', container.querySelector('#toggleBtn')!) await nextTick() expect(container.innerHTML).toBe( - '
foo
', + '
false
', ) }) @@ -2443,7 +2443,7 @@ describe('SSR hydration', () => { `, @@ -2454,13 +2454,13 @@ describe('SSR hydration', () => { // hydrate createSSRApp(App).mount(container) expect(container.innerHTML).toBe( - 'foo', + 'true', ) triggerEvent('click', container.querySelector('#toggleBtn')!) await nextTick() expect(container.innerHTML).toBe( - '
foo
', + '
false
', ) }) @@ -2478,7 +2478,7 @@ describe('SSR hydration', () => { `, @@ -2489,13 +2489,13 @@ describe('SSR hydration', () => { // hydrate createSSRApp(App).mount(container) expect(container.innerHTML).toBe( - 'foo', + 'true', ) triggerEvent('click', container.querySelector('#toggleBtn')!) await nextTick() expect(container.innerHTML).toBe( - '
foo
', + '
false
', ) }) }) -- 2.39.5