-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5205 from mathbraga/revert-5197-revert-5041-featu…
…re/4935_subgraph-title-margin-config-option Revert "Revert 5041 feature/4935 subgraph title margin config option"
- Loading branch information
Showing
8 changed files
with
199 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { getSubGraphTitleMargins } from './subGraphTitleMargins.js'; | ||
import * as configApi from '../config.js'; | ||
|
||
describe('getSubGraphTitleMargins', () => { | ||
it('should get subgraph title margins after config has been set', () => { | ||
const config_0 = { | ||
flowchart: { | ||
subGraphTitleMargin: { | ||
top: 10, | ||
bottom: 5, | ||
}, | ||
}, | ||
}; | ||
|
||
configApi.setSiteConfig(config_0); | ||
expect(getSubGraphTitleMargins(config_0)).toEqual({ | ||
subGraphTitleTopMargin: 10, | ||
subGraphTitleBottomMargin: 5, | ||
subGraphTitleTotalMargin: 15, | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.