UNPKG

@zohodesk/components

Version:

Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development

33 lines 1.03 kB
import React from 'react'; import { render } from '@testing-library/react'; import { CardHeader } from "../Card"; describe('CardHeader', () => { test('rendering the defult props', () => { const { asFragment } = render( /*#__PURE__*/React.createElement(CardHeader, null)); expect(asFragment()).toMatchSnapshot(); }); test('rendering the isScroll is true', () => { const { asFragment } = render( /*#__PURE__*/React.createElement(CardHeader, { isScroll: true }, "Children")); expect(asFragment()).toMatchSnapshot(); }); test('rendering the Children is true', () => { const { asFragment } = render( /*#__PURE__*/React.createElement(CardHeader, null, "Children")); expect(asFragment()).toMatchSnapshot(); }); test('rendering the customClass ', () => { const { asFragment } = render( /*#__PURE__*/React.createElement(CardHeader, { customClass: "cardHeader-class" }, "Children")); expect(asFragment()).toMatchSnapshot(); }); });