From 0af77636fb208e0da1f116de3bb90627098e616e Mon Sep 17 00:00:00 2001 From: Olga Mazurina Date: Mon, 18 Sep 2023 16:37:03 +0200 Subject: [PATCH] #3280 - remove it --- .../renderers/PolymerBondRenderer.test.ts | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) 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(); + }); +});