test: add demo destroy

pull/77/merge
tangjinzhou 2018-06-06 13:46:19 +08:00
parent 34230dd40e
commit dd907abbc0
1 changed files with 1 additions and 0 deletions

View File

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