index.spec.js 354 B

12345678910111213141516
  1. import Progress from '..';
  2. import { mount } from '../../../test/utils';
  3. test('calc width', () => {
  4. const wrapper = mount(Progress, {
  5. propsData: {
  6. showPivot: false,
  7. percentage: 100
  8. }
  9. });
  10. expect(wrapper).toMatchSnapshot();
  11. wrapper.vm.showPivot = true;
  12. wrapper.vm.pivotText = 'test';
  13. expect(wrapper).toMatchSnapshot();
  14. });