Skip to content

Commit f812920

Browse files
authored
wrong assertion is used in the attachTo example (#1933)
1 parent 2563b48 commit f812920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/options.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@ const Component = {
317317
let wrapper = mount(Component, {
318318
attachTo: '#root'
319319
})
320-
expect(wrapper.vm.$el.parentNode).to.not.be.null
320+
expect(wrapper.vm.$el.parentNode).not.toBeNull()
321321
wrapper.destroy()
322322

323323
wrapper = mount(Component, {
324324
attachTo: document.getElementById('root')
325325
})
326-
expect(wrapper.vm.$el.parentNode).to.not.be.null
326+
expect(wrapper.vm.$el.parentNode).not.toBeNull()
327327
wrapper.destroy()
328328
```
329329

0 commit comments

Comments
 (0)