import React from 'react'; import { shallow } from 'enzyme'; import Logo from '..'; import { bdlBoxBlue } from '../../../styles/variables'; describe('components/logo/Logo', () => { test('should correctly render default Logo', () => { const wrapper = shallow(); expect(wrapper.hasClass('logo')).toBe(true); expect(wrapper.find('IconLogo').prop('width')).toEqual(45); expect(wrapper.find('IconLogo').prop('height')).toEqual(25); expect(wrapper.find('IconLogo').prop('color')).toEqual(bdlBoxBlue); }); test('should correctly render Logo specified color', () => { const color = '#ffffff'; const wrapper = shallow(); expect(wrapper.find('IconLogo').prop('color')).toEqual(color); }); test('should correctly render Logo specified width and height', () => { const width = 55; const height = 445; const wrapper = shallow(); expect(wrapper.find('IconLogo').prop('width')).toEqual(width); expect(wrapper.find('IconLogo').prop('height')).toEqual(height); }); test('should correctly render Logo specified title', () => { const title = 'Hello there'; const wrapper = shallow(); expect(wrapper.find('IconLogo').prop('title')).toEqual(title); }); });