Fix broken unit test

This commit is contained in:
Ashish Jain
2024-07-19 15:40:20 +02:00
parent 05abfd132b
commit 64a5c11318

View File

@@ -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', () => {