phoenix-components-library
Version:
Component library for Phoenix Frontend Projects.
16 lines (13 loc) • 446 B
JSX
import React from 'react';
import renderer from 'react-test-renderer';
import { CheckBox } from './CheckBox';
describe('<CheckBox /> ', () => {
test('Render Checkbox correctly', () => {
const tree = renderer.create(<CheckBox />).toJSON();
expect(tree).toMatchSnapshot();
});
test('Testing props', () => {
const tree = renderer.create(<CheckBox label="Label" disabled checked />);
expect(tree).toMatchSnapshot();
});
});