import renderer from 'react-test-renderer'; import AbstractPort from './AbstractPort.component'; import { PortRecord, PositionRecord, PortGraphicalAttributes, } from '../../constants/flowdesigner.model'; describe(' renders correctly', () => { it(' renders correctly', () => { const port = new PortRecord({ id: 'idPort', nodeId: 'nodeId', graphicalAttributes: new PortGraphicalAttributes({ position: new PositionRecord({ x: 100, y: 100, }), }), }); const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); });