This commit is contained in:
Yusuke Wada 2021-09-14 18:41:51 +09:00
parent 20aaf644fa
commit a448af2897
1 changed files with 1 additions and 1 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%');
});