From dd907abbc05962c7139a793eb782ed9434a4c01d Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 6 Jun 2018 13:46:19 +0800 Subject: [PATCH] test: add demo destroy --- tests/shared/demoTest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/shared/demoTest.js b/tests/shared/demoTest.js index 58496a86f..e3ad50b94 100644 --- a/tests/shared/demoTest.js +++ b/tests/shared/demoTest.js @@ -22,6 +22,7 @@ export default function demoTest (component, options = {}) { Vue.nextTick(() => { expect(wrapper.html()).toMatchSnapshot() MockDate.reset() + wrapper.destroy() done() }) })