@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
21 lines • 655 B
JavaScript
import React from 'react';
import { render } from '@testing-library/react';
import DateTime from "../DateTime";
describe('DateTime', () => {
test('rendering the defult props', () => {
const {
asFragment
} = render( /*#__PURE__*/React.createElement(DateTime, null));
expect(asFragment()).toMatchSnapshot();
});
test('rendering the isActive is true and isDefaultPosition is true', () => {
const {
asFragment
} = render( /*#__PURE__*/React.createElement(DateTime, {
isActive: true,
isDefaultPosition: true,
value: "2023-07-29T20:20:20.000"
}));
expect(asFragment()).toMatchSnapshot();
});
});