xchain-components
Version:
Xchain Components
22 lines (17 loc) • 600 B
JavaScript
/* @flow */
/* eslint react/jsx-filename-extension: 0 */
import React from 'react';
import { shallow } from 'enzyme';
import XDisplayText from '..';
describe('XDisplayText', () => {
it('should render correctly without any style props', () => {
const component = shallow(<XDisplayText displayText="testcase" />);
expect(component).toMatchSnapshot();
});
});
describe('XDisplayText', () => {
it('should render correctly in bold style', () => {
const component = shallow(<XDisplayText displayText="testcase" fontStyle="bold" />);
expect(component).toMatchSnapshot();
});
});