chore: move handDrawnSeed to mermaidUrl function

This commit is contained in:
Sidharth Vinod 2024-10-04 01:31:20 +05:30
parent e5a28de26e
commit 6e0fe03552
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -29,6 +29,7 @@ export const mermaidUrl = (
options: CypressMermaidConfig,
api: boolean
): string => {
options.handDrawnSeed = 1;
const codeObject: CodeObject = {
code: graphStr,
mermaid: options,
@ -65,7 +66,6 @@ export const imgSnapshotTest = (
: 'courier',
messageFontFamily: 'courier',
},
handDrawnSeed: 1,
};
const url: string = mermaidUrl(graphStr, options, api);