[Improvement] upgrade to jest-serializer-vue@2.0 (#1215)

This commit is contained in:
neverland
2018-06-01 18:04:16 +08:00
committed by GitHub
parent 1fed9bdbcd
commit 01e7934d19
16 changed files with 225 additions and 214 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ test('exchange coupon', () => {
test('coupon cell', () => {
const wrapper = mount(CouponCell);
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
wrapper.setProps({
coupons: [{ value: 100 }],
chosenCoupon: 0
});
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
});