mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[Improvement] Progress: pivot shouldn't cross border (#1135)
This commit is contained in:
16
packages/progress/test/index.spec.js
Normal file
16
packages/progress/test/index.spec.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import Progress from '../';
|
||||
import { mount } from '@vue/test-utils';
|
||||
|
||||
test('calc width', () => {
|
||||
const wrapper = mount(Progress, {
|
||||
propsData: {
|
||||
showPivot: false,
|
||||
percentage: 100
|
||||
}
|
||||
});
|
||||
expect(wrapper.html()).toMatchSnapshot();
|
||||
|
||||
wrapper.vm.showPivot = true;
|
||||
wrapper.vm.pivotText = 'test';
|
||||
expect(wrapper.html()).toMatchSnapshot();
|
||||
});
|
Reference in New Issue
Block a user