您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

dashes.test.ts 1.2KB

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