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