Skip to content

Commit

Permalink
test: removed changes to unrelated test
Browse files Browse the repository at this point in the history
  • Loading branch information
steveworkman committed Jan 12, 2023
1 parent 81587b3 commit 6584906
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/runtime-core/__tests__/hydration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,15 @@ describe('SSR hydration', () => {

test('element with text children', async () => {
const msg = ref('foo')
const app = mountWithHydration('<div class="foo">foo</div>', () =>
h('div', { class: msg.value }, msg.value)
const { vnode, container } = mountWithHydration(
'<div class="foo">foo</div>',
() => h('div', { class: msg.value }, msg.value)
)
expect(app.vnode.el).toBe(app.container.firstChild)
expect(app.container.firstChild!.textContent).toBe('foo')
expect(vnode.el).toBe(container.firstChild)
expect(container.firstChild!.textContent).toBe('foo')
msg.value = 'bar'
await nextTick()
expect(app.container.innerHTML).toBe(`<div class="bar">bar</div>`)
expect(container.innerHTML).toBe(`<div class="bar">bar</div>`)
})

test('element with elements children', async () => {
Expand Down

0 comments on commit 6584906

Please sign in to comment.