diff --git a/src/rendering/Text/__snapshots__/test.js.snap b/src/rendering/Text/__snapshots__/test.js.snap index 0543be4..06b30c9 100644 --- a/src/rendering/Text/__snapshots__/test.js.snap +++ b/src/rendering/Text/__snapshots__/test.js.snap @@ -18,75 +18,62 @@ Object { `; exports[`Text positioning text 1`] = ` - - Example - + + + + Example + + + `; exports[`Text rendering 1`] = ` - - Example - + + + + Example + + + `; exports[`Text rendering quoted text 1`] = ` - - - “ - - - Example - - - ” - - + + + + + “ + + + Example + + + ” + + + + `; exports[`Text rendering with a theme 1`] = ` - - Example - + + + + Example + + + `; diff --git a/src/rendering/Text/test.js b/src/rendering/Text/test.js index 068b59e..4dae17e 100644 --- a/src/rendering/Text/test.js +++ b/src/rendering/Text/test.js @@ -1,35 +1,43 @@ import React from 'react'; -import { shallow } from 'enzyme'; +import { render } from 'react-testing-library'; import Text, { layout } from 'rendering/Text'; describe('Text', () => { test('rendering', () => { - const component = shallow( - Example + const { asFragment } = render( + + Example + ); - expect(component).toMatchSnapshot(); + expect(asFragment()).toMatchSnapshot(); }); test('positioning text', () => { - const component = shallow( - Example + const { asFragment } = render( + + Example + ); - expect(component).toMatchSnapshot(); + expect(asFragment()).toMatchSnapshot(); }); test('rendering with a theme', () => { - const component = shallow( - Example + const { asFragment } = render( + + Example + ); - expect(component).toMatchSnapshot(); + expect(asFragment()).toMatchSnapshot(); }); test('rendering quoted text', () => { - const component = shallow( - Example + const { asFragment } = render( + + Example + ); - expect(component).toMatchSnapshot(); + expect(asFragment()).toMatchSnapshot(); }); test('layout', () => {