Skip to content

Commit

Permalink
test: update vShow tests to workaround jsdom regression
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 8, 2024
1 parent 96fffe6 commit ceb215e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/runtime-dom/__tests__/directives/vShow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('runtime-dom: v-show directive', () => {
})
render(h(component), root)

const $div = root.querySelector('div')
const $div = root.children[0]

expect($div.style.display).toEqual('')
})
Expand All @@ -46,7 +46,7 @@ describe('runtime-dom: v-show directive', () => {
})
render(h(component), root)

const $div = root.querySelector('div')
const $div = root.children[0]

expect($div.style.display).toEqual('none')
})
Expand All @@ -62,7 +62,7 @@ describe('runtime-dom: v-show directive', () => {
})
render(h(component), root)

const $div = root.querySelector('div')
const $div = root.children[0]
const data = root._vnode.component.data

expect($div.style.display).toEqual('')
Expand Down Expand Up @@ -113,7 +113,7 @@ describe('runtime-dom: v-show directive', () => {
})
render(h(component), root)

const $div = root.querySelector('div')
const $div = root.children[0]
const data = root._vnode.component.data

expect($div.style.display).toEqual('block')
Expand All @@ -138,7 +138,7 @@ describe('runtime-dom: v-show directive', () => {
})
render(h(component), root)

const $div = root.querySelector('div')
const $div = root.children[0]

expect($div.style.display).toEqual('none')

Expand Down Expand Up @@ -173,7 +173,7 @@ describe('runtime-dom: v-show directive', () => {
})
render(h(component), root)

const $div = root.querySelector('div')
const $div = root.children[0]

expect($div.style.display).toEqual('none')

Expand Down

0 comments on commit ceb215e

Please sign in to comment.