8000 docs(common-tips): fix syntax error (#1659) · vuejs/vue-test-utils@8515ac4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8515ac4

Browse files
authored
docs(common-tips): fix syntax error (#1659)
Add missing `expect` in assertion
1 parent 498382c commit 8515ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/common-tips.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ it('updates text', async () => {
5656
it('render text', done => {
5757
const wrapper = mount(TestComponent)
5858
wrapper.trigger('click').then(() => {
59-
wrapper.text().toContain('updated')
59+
expect(wrapper.text()).toContain('updated')
6060
wrapper.trigger('click').then(() => {
61-
wrapper.text().toContain('some different text')
61+
expect(wrapper.text()).toContain('some different text')
6262
done()
6363
})
6464
})

0 commit comments

Comments
 (0)
0