wix-style-react
Version:
wix-style-react
15 lines (12 loc) • 443 B
JavaScript
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');
});
});