UNPKG

wix-style-react

Version:
15 lines (12 loc) 443 B
import React from 'react'; import { shallow } from 'enzyme'; import TextLabel from '.'; describe('TextLabel', function () { it('should render children', function () { var wrapper = shallow(React.createElement(TextLabel, { children: 'covfefe' })); expect(wrapper.contains('covfefe')).toBe(true); }); it('should have correct displayName', function () { expect(TextLabel.displayName).toBe('Notification.TextLabel'); }); });