Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 line
751 B

  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. })