如何对vue.js单文件(.vue)进行单元测试
1 回答
哔哔one
TA贡献1854条经验 获得超8个赞
import Vue from 'vue';import FinalCountdown from 'src/components/workflow/FinalCountdown';describe('workflow/FinalCountDown component.', () => { const getComponent = (date) => { let vm = new Vue({ template: '<div><final-countdown v-ref:component :date="date"></final-countdown></div>', components: { FinalCountdown }, data: { date } }); return vm; };
添加回答
举报
0/150
提交
取消