import renderer from 'react-test-renderer'; import Mask from './Mask'; test('Mask renders', () => { const component = renderer.create( Painting , ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); test('Mask has the correct width', () => { const component = renderer.create( Painting , ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); });