8000 wrong assertion is used in the attachTo example (#1933) · vuejs/vue-test-utils@f812920 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 2 additions & 2 deletions
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)
0