From: daiwei Date: Sat, 1 Feb 2025 01:53:26 +0000 (+0800) Subject: test: update X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12767%2Fhead;p=thirdparty%2Fvuejs%2Fcore.git test: update --- 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
', ) }) })