Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

index.test.ts 751 B

1234567891011121314151617181920212223242526
  1. /// <reference types="jest-enzyme" />
  2. /// <reference path="../utilities/jest/extensions.ts" />
  3. import * as T from './index'
  4. const Tesseract = T as Record<string, unknown>
  5. describe.each`
  6. name | componentId
  7. ${'button'} | ${'Button'}
  8. ${'checkbox'} | ${'Checkbox'}
  9. ${'icon'} | ${'Icon'}
  10. ${'radio button'} | ${'RadioButton'}
  11. ${'select'} | ${'Select'}
  12. ${'slider'} | ${'Slider'}
  13. ${'text input'} | ${'TextInput'}
  14. `('on $name component', ({ componentId, }) => {
  15. const theComponentId = componentId as string
  16. it('should exist', () => {
  17. expect(Tesseract[theComponentId]).toBeDefined()
  18. })
  19. it('should be a component', () => {
  20. expect(Tesseract[theComponentId]).toBeComponent()
  21. })
  22. })