import React from 'react'; import { Icon } from '../../lib/offline'; import renderer from 'react-test-renderer'; const iconData = { body: '', width: 24, height: 24, }; describe('Inline attribute', () => { test('string', () => { const component = renderer.create( ); const tree = component.toJSON(); expect(tree.props.style.verticalAlign).toStrictEqual('-0.125em'); }); test('false string', () => { // "false" = true const component = renderer.create( ); const tree = component.toJSON(); expect(tree.props.style.verticalAlign).toStrictEqual('-0.125em'); }); });