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

Diff for: docs/guides/common-tips.md

+2-2
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)