Reverting PR #2312

This commit is contained in:
Ashish Jain
2021-09-29 18:22:35 +02:00
parent 4839e6a8b3
commit 38ef061175
10 changed files with 28 additions and 12 deletions

View File

@@ -243,7 +243,7 @@ describe('when formatting urls', function() {
describe('when calculating SVG size', function() {
it('should return width 100% when useMaxWidth is true', function () {
const attrs = utils.calculateSvgSizeAttrs(100, 200, true);
expect(attrs.get('height')).toEqual('100%');
expect(attrs.get('height')).toEqual(100);
expect(attrs.get('style')).toEqual('max-width: 200px;');
expect(attrs.get('width')).toEqual('100%');
});