diff --git a/packages/ketcher-core/__tests__/application/render/renderers/PolymerBondRenderer.test.ts b/packages/ketcher-core/__tests__/application/render/renderers/PolymerBondRenderer.test.ts index 3997740936..06ab095ada 100644 --- a/packages/ketcher-core/__tests__/application/render/renderers/PolymerBondRenderer.test.ts +++ b/packages/ketcher-core/__tests__/application/render/renderers/PolymerBondRenderer.test.ts @@ -1,19 +1,20 @@ -// import { createPolymerEditorCanvas } from '../../../helpers/dom'; -// import { getFinishedPolymerBond } from '../../../mock-data'; -// import { PolymerBondRenderer } from 'application/render/renderers/PolymerBondRenderer'; +import { createPolymerEditorCanvas } from '../../../helpers/dom'; +import { getFinishedPolymerBond } from '../../../mock-data'; +import { PolymerBondRenderer } from 'application/render/renderers/PolymerBondRenderer'; -// describe('Polymer Bond Renderer', () => { -// it('should render bond', () => { -// const canvas: SVGSVGElement = createPolymerEditorCanvas(); -// const polymerBond = getFinishedPolymerBond(10, 10, 90, 100); -// polymerBond.moveToLinkedMonomers(); -// const polymerBondRenderer = new PolymerBondRenderer(polymerBond); -// global.SVGElement.prototype.getBBox = jest.fn(); -// jest -// .spyOn(global.SVGElement.prototype, 'getBBox') -// .mockImplementation(() => ({ width: 30, height: 20 })); -// polymerBondRenderer.show(); +describe('Polymer Bond Renderer', () => { + // Remove skip later! + it.skip('should render bond', () => { + const canvas: SVGSVGElement = createPolymerEditorCanvas(); + const polymerBond = getFinishedPolymerBond(10, 10, 90, 100); + polymerBond.moveToLinkedMonomers(); + const polymerBondRenderer = new PolymerBondRenderer(polymerBond); + global.SVGElement.prototype.getBBox = jest.fn(); + jest + .spyOn(global.SVGElement.prototype, 'getBBox') + .mockImplementation(() => ({ width: 30, height: 20 })); + polymerBondRenderer.show(); -// expect(canvas).toMatchSnapshot(); -// }); -// }); + expect(canvas).toMatchSnapshot(); + }); +});