Skip to content

Commit

Permalink
#3280 - remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
Olga Mazurina authored and rrodionov91 committed Oct 16, 2023
1 parent 994bf83 commit 0af7763
Showing 1 changed file with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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();
});
});

0 comments on commit 0af7763

Please sign in to comment.