Skip to content

Commit

Permalink
wrong assertion is used in the attachTo example (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
geneowak authored Nov 29, 2021
1 parent 2563b48 commit f812920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ const Component = {
let wrapper = mount(Component, {
attachTo: '#root'
})
expect(wrapper.vm.$el.parentNode).to.not.be.null
expect(wrapper.vm.$el.parentNode).not.toBeNull()
wrapper.destroy()

wrapper = mount(Component, {
attachTo: document.getElementById('root')
})
expect(wrapper.vm.$el.parentNode).to.not.be.null
expect(wrapper.vm.$el.parentNode).not.toBeNull()
wrapper.destroy()
```

Expand Down

0 comments on commit f812920

Please sign in to comment.