Website for showcasing all features of Tesseract Web.
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.
 
 

21 regels
516 B

  1. import * as React from 'react';
  2. import {
  3. render,
  4. screen
  5. } from '@testing-library/react';
  6. import '@testing-library/jest-dom';
  7. import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol';
  8. import { RadioTickBox } from '.';
  9. jest.mock('@tesseract-design/web-base-checkcontrol');
  10. describe('RadioTickBox', () => {
  11. it('should render a radio button', () => {
  12. render(
  13. <RadioTickBox />
  14. );
  15. const checkbox = screen.getByRole('radio');
  16. expect(checkbox).toBeInTheDocument();
  17. });
  18. });