Skip to content

Commit

Permalink
chore: fix test warnings
Browse files Browse the repository at this point in the history
The Vue compiler started complaining about badly formed templates.
  • Loading branch information
cexbrayat committed Sep 24, 2021
1 parent f8e3650 commit a6aa2b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/findComponent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ describe('findComponent', () => {
const Comp = defineComponent({
components: { Hello: Hello },
template:
'<div><Hello class="one"/><div class="nested"><Hello class="two" /></div>'
'<div><Hello class="one"/><div class="nested"><Hello class="two" /></div></div>'
})

const wrapper = mount(Comp)
Expand All @@ -377,7 +377,7 @@ describe('findComponent', () => {
name: 'Comp',
props: ['firstLevel'],
template:
'<div class="first"><div class="nested"><Comp v-if="firstLevel" class="second" /></div>'
'<div class="first"><div class="nested"><Comp v-if="firstLevel" class="second" /></div></div>'
})

const wrapper = mount(Comp, { props: { firstLevel: true } })
Expand All @@ -399,7 +399,7 @@ describe('findComponent', () => {
it('uses refs of correct component when searching by ref', () => {
const Child = defineComponent({
components: { Hello },
template: '<div><Hello ref="testRef" class="inside"></div>'
template: '<div><Hello ref="testRef" class="inside" /></div>'
})
const Comp = defineComponent({
components: { Child, Hello },
Expand Down
2 changes: 1 addition & 1 deletion tests/isVisible.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ describe('isVisible', () => {

describe('child has two nodes', () => {
const Foo = defineComponent({
template: `<div /><span />`
template: `<div ><span /></div>`
})

const Root = defineComponent({
Expand Down

0 comments on commit a6aa2b7

Please sign in to comment.