如何使用Mocha / Istanbul测试Vue道具的默认值?

我已经覆盖了所有行,还检查了默认值,然后对其进行了更改,但仍未覆盖。

expect(wrapper.props().type).toBe('')
wrapper.setProps({ type: 'time' });
expect(wrapper.props().type).toBe('time')

Showing that line is not covered

power1234power 回答:如何使用Mocha / Istanbul测试Vue道具的默认值?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2534748.html

大家都在问