test: add demo destroy

pull/165/head
tangjinzhou 2018-06-06 13:46:19 +08:00
parent 2f972821d4
commit 92f1fcd0ff
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export default function demoTest (component, options = {}) {
Vue.nextTick(() => { Vue.nextTick(() => {
expect(wrapper.html()).toMatchSnapshot() expect(wrapper.html()).toMatchSnapshot()
MockDate.reset() MockDate.reset()
wrapper.destroy()
done() done()
}) })
}) })