mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
Fix nesting of getSubGraphTitleMargins test.
This commit is contained in:
@@ -595,24 +595,24 @@ describe('calculatePoint', () => {
|
|||||||
'Could not find a suitable point for the given distance'
|
'Could not find a suitable point for the given distance'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('getSubGraphTitleMargins', () => {
|
describe('getSubGraphTitleMargins', () => {
|
||||||
it('should get subgraph title margins after config has been set', () => {
|
it('should get subgraph title margins after config has been set', () => {
|
||||||
const config_0 = {
|
const config_0 = {
|
||||||
flowchart: {
|
flowchart: {
|
||||||
subGraphTitleMargin: {
|
subGraphTitleMargin: {
|
||||||
top: 10,
|
top: 10,
|
||||||
bottom: 5,
|
bottom: 5,
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
},
|
||||||
|
};
|
||||||
|
|
||||||
configApi.setSiteConfig(config_0);
|
configApi.setSiteConfig(config_0);
|
||||||
expect(getSubGraphTitleMargins()).toEqual({
|
expect(getSubGraphTitleMargins()).toEqual({
|
||||||
subGraphTitleTopMargin: 10,
|
subGraphTitleTopMargin: 10,
|
||||||
subGraphTitleBottomMargin: 5,
|
subGraphTitleBottomMargin: 5,
|
||||||
subGraphTitleTotalMargin: 15,
|
subGraphTitleTotalMargin: 15,
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user