import React from 'react';

import { mount } from 'enzyme';

import Text from '../src/text';

describe('Text', () => {
  it('renders plain text', () => {
    const wrapper = mount(
      <Text data={'hey'} />,
    );

    expect(wrapper.html()).toEqual('<code><span>hey</span></code>');

    const component = wrapper.instance();

    expect(component.shouldComponentUpdate()).toEqual(true);
  });
});

@@ -259,19 +259,61 @@
 e%3E%3Cspan%3E
-hey
+%3C!-- react-text: 3 --%3Ehey%3C!-- /react-text --%3E
 %3C/span%3E%3C

Fix text transform test