From 5f2c1aeeddfb207c46f0729a6a73a40f74ffffb3 Mon Sep 17 00:00:00 2001 From: Rena Brown Date: Mon, 18 Oct 2021 13:55:54 +0200 Subject: [PATCH] test: adapt test du to vuejs/vue-test-utils-next#945 --- __tests__/components.spec.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/__tests__/components.spec.ts b/__tests__/components.spec.ts index e6876f4..3e6112c 100644 --- a/__tests__/components.spec.ts +++ b/__tests__/components.spec.ts @@ -5,13 +5,11 @@ describe('components', () => { const wrapper = mount( { template: `Hello`, - } - // { global: { stubs: { RouterLink: true } } } + }, + { global: { stubs: { RouterLink: true } } } ) - expect(wrapper.html()).toMatchInlineSnapshot( - `""` - ) + expect(wrapper.html()).toMatch(/router-link-stub/) }) it('can use real router-link', async () => {