mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 11:59:39 +02:00
add spec
This commit is contained in:
@@ -243,7 +243,7 @@ describe('when formatting urls', function() {
|
|||||||
describe('when calculating SVG size', function() {
|
describe('when calculating SVG size', function() {
|
||||||
it('should return width 100% when useMaxWidth is true', function () {
|
it('should return width 100% when useMaxWidth is true', function () {
|
||||||
const attrs = utils.calculateSvgSizeAttrs(100, 200, true);
|
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('style')).toEqual('max-width: 200px;');
|
||||||
expect(attrs.get('width')).toEqual('100%');
|
expect(attrs.get('width')).toEqual('100%');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user