mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[bugfix] SwipeCell: incorrect render when left-width equals zero (#2737)
This commit is contained in:
@@ -64,3 +64,13 @@ test('on close prop', () => {
|
||||
wrapper.trigger('click');
|
||||
expect(wrapper.vm.offset).toEqual(0);
|
||||
});
|
||||
|
||||
it('width equals zero', () => {
|
||||
const wrapper = mount(SwipeCell, {
|
||||
propsData: {
|
||||
leftWidth: 0,
|
||||
rightWidth: 0
|
||||
}
|
||||
});
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
Reference in New Issue
Block a user