From 64a5c113186778ca0fefcc9d89f6960c724f7e1e Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Fri, 19 Jul 2024 15:40:20 +0200 Subject: [PATCH] Fix broken unit test --- packages/mermaid/src/mermaidAPI.spec.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/mermaid/src/mermaidAPI.spec.ts b/packages/mermaid/src/mermaidAPI.spec.ts index 92dae1723..1d4e0c963 100644 --- a/packages/mermaid/src/mermaidAPI.spec.ts +++ b/packages/mermaid/src/mermaidAPI.spec.ts @@ -444,9 +444,14 @@ describe('mermaidAPI', () => { '\ndefault' + '\n.classDef1 > * { style1-1 !important; }' + '\n.classDef1 span { style1-1 !important; }'; - expect(getStyles).toHaveBeenCalledWith('flowchart-v2', expectedStyles, { - fontFamily: 'serif', - }); + expect(getStyles).toHaveBeenCalledWith( + 'flowchart-v2', + expectedStyles, + { + fontFamily: 'serif', + }, + 'someId' + ); }); it('calls getStyles to get css for all graph, user css styles, and config theme variables', () => {