From 681f7ed982178a52b61589abec4f70bcfe6b5b62 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 29 Nov 2020 10:56:04 +0800 Subject: [PATCH] fix(create-vant-cli-app): fix vue3 test cases --- .../src/demo-button/test/__snapshots__/index.spec.js.snap | 5 ++++- .../generators/vue3/src/demo-button/test/index.spec.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap index e9030c705..d1a320721 100644 --- a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap +++ b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap @@ -1,3 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`render demo button 1`] = ``; +exports[`render demo button 1`] = ` + +`; diff --git a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js index d87d7d531..cb29feee9 100644 --- a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js +++ b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js @@ -3,5 +3,5 @@ import DemoButton from '../../demo-button'; test('render demo button', () => { const wrapper = mount(DemoButton); - expect(wrapper).toMatchSnapshot(); + expect(wrapper.html()).toMatchSnapshot(); });