chore: resolve eslint warnings in cypress/helpers/util.ts

This commit is contained in:
Sidharth Vinod
2025-04-19 10:21:40 +05:30
parent 9d838d4e7a
commit 4535911a3a

View File

@@ -22,7 +22,7 @@ const batchId: string =
'mermaid-batch-' + 'mermaid-batch-' +
(Cypress.env('useAppli') (Cypress.env('useAppli')
? Date.now().toString() ? Date.now().toString()
: Cypress.env('CYPRESS_COMMIT') || Date.now().toString()); : (Cypress.env('CYPRESS_COMMIT') ?? Date.now().toString()));
export const mermaidUrl = ( export const mermaidUrl = (
graphStr: string | string[], graphStr: string | string[],
@@ -61,9 +61,7 @@ export const imgSnapshotTest = (
sequence: { sequence: {
...(_options.sequence ?? {}), ...(_options.sequence ?? {}),
actorFontFamily: 'courier', actorFontFamily: 'courier',
noteFontFamily: _options.sequence?.noteFontFamily noteFontFamily: _options.sequence?.noteFontFamily ?? 'courier',
? _options.sequence.noteFontFamily
: 'courier',
messageFontFamily: 'courier', messageFontFamily: 'courier',
}, },
}; };