From 40938a0f86c51525e28a074130cff4860d9c63b5 Mon Sep 17 00:00:00 2001 From: Chinonso Chukwuogor Date: Thu, 20 Aug 2020 10:49:37 -0700 Subject: [PATCH] docs(common-tips): fix syntax error Add missing `expect` in assertion --- docs/guides/common-tips.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/common-tips.md b/docs/guides/common-tips.md index 46e02502f..30f603399 100644 --- a/docs/guides/common-tips.md +++ b/docs/guides/common-tips.md @@ -56,9 +56,9 @@ it('updates text', async () => { it('render text', done => { const wrapper = mount(TestComponent) wrapper.trigger('click').then(() => { - wrapper.text().toContain('updated') + expect(wrapper.text()).toContain('updated') wrapper.trigger('click').then(() => { - wrapper.text().toContain('some different text') + expect(wrapper.text()).toContain('some different text') done() }) })