Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

dashes.test.ts 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. import { getPerfectDashProps } from 'utils/dashes'
  2. describe('ellipse dash props', () => {
  3. it('renders dashed props on a circle correctly', () => {
  4. expect(getPerfectDashProps(100, 4, 'dashed')).toMatchSnapshot(
  5. 'small dashed circle dash props'
  6. )
  7. expect(getPerfectDashProps(100, 4, 'dashed')).toMatchSnapshot(
  8. 'small dashed ellipse dash props'
  9. )
  10. expect(getPerfectDashProps(200, 8, 'dashed')).toMatchSnapshot(
  11. 'large dashed circle dash props'
  12. )
  13. expect(getPerfectDashProps(200, 8, 'dashed')).toMatchSnapshot(
  14. 'large dashed ellipse dash props'
  15. )
  16. })
  17. it('renders dotted props on a circle correctly', () => {
  18. expect(getPerfectDashProps(100, 4, 'dotted')).toMatchSnapshot(
  19. 'small dotted circle dash props'
  20. )
  21. expect(getPerfectDashProps(100, 4, 'dotted')).toMatchSnapshot(
  22. 'small dotted ellipse dash props'
  23. )
  24. expect(getPerfectDashProps(200, 8, 'dotted')).toMatchSnapshot(
  25. 'large dotted circle dash props'
  26. )
  27. expect(getPerfectDashProps(200, 8, 'dotted')).toMatchSnapshot(
  28. 'large dotted ellipse dash props'
  29. )
  30. })
  31. })