[new feature] CouponList: add empty-image prop (#3941)

This commit is contained in:
neverland
2019-07-23 20:20:57 +08:00
committed by GitHub
parent e81e5bd708
commit 012fd851c1
5 changed files with 51 additions and 2 deletions
+10
View File
@@ -102,6 +102,16 @@ test('render empty coupon list', () => {
expect(wrapper).toMatchSnapshot();
});
test('empty-image prop', () => {
const wrapper = mount(CouponList, {
propsData: {
emptyImage: 'https://img.yzcdn.com/xxx.png'
}
});
expect(wrapper).toMatchSnapshot();
});
test('exchange coupon', () => {
const wrapper = mount(CouponList);
const exchange = wrapper.find('.van-coupon-list__exchange');