UNPKG

xchain-components

Version:
22 lines (16 loc) 558 B
/* eslint react/jsx-filename-extension: 0 */ import React from 'react'; import { shallow } from 'enzyme'; import XLabel from '../../XLabel'; describe('XLabel', () => { it('Label should render correctly in circular', () => { const component = shallow(<XLabel circular text="MY" color="pink" />); expect(component).toMatchSnapshot(); }); }); describe('XLabel-1', () => { it('Label should render correctly without circular', () => { const component = shallow(<XLabel text="Hello" />); expect(component).toMatchSnapshot(); }); });