import React from 'react';
import { shallow, mount } from 'enzyme';
import Label from './';
import 'jest-styled-components';
describe('Label Component', () => {
test('renders', () => {
const wrapper = shallow();
expect(wrapper).toMatchSnapshot();
});
test('the Label text is equal to `Label`', () => {
const wrapper = mount();
expect(wrapper.text()).toEqual('Label');
});
test('the font size is equal to `16px`', () => {
const wrapper = mount();
expect(wrapper).toHaveStyleRule('font-size', '16px');
});
test('the font weight is equal to `600`', () => {
const wrapper = mount();
expect(wrapper).toHaveStyleRule('font-weight', '600');
});
test('the font family is equal to `Rapha Sans Condensed, sans-serif`', () => {
const wrapper = mount();
expect(wrapper).toHaveStyleRule('font-family', `'Rapha Sans Condensed',sans-serif`);
});
});