diff --git a/docs/guides/common-tips.md b/docs/guides/common-tips.md index 3f103a522..e394786a3 100644 --- a/docs/guides/common-tips.md +++ b/docs/guides/common-tips.md @@ -49,7 +49,7 @@ it('updates text', async () => { await wrapper.trigger('click') expect(wrapper.text()).toContain('updated') await wrapper.trigger('click') - wrapper.text().toContain('some different text') + expect(wrapper.text()).toContain('some different text') }) // Or if you're without async/await