diff --git a/packages/mermaid/src/diagrams/git/gitGraph.spec.ts b/packages/mermaid/src/diagrams/git/gitGraph.spec.ts index 0d6eb07ec..ee20a9aaf 100644 --- a/packages/mermaid/src/diagrams/git/gitGraph.spec.ts +++ b/packages/mermaid/src/diagrams/git/gitGraph.spec.ts @@ -1349,12 +1349,12 @@ describe('when parsing a gitGraph', function () { commit id:"work on v1.1" `; - const spyOn = vi.spyOn(log, 'warn').mockImplementation(() => undefined); + const logWarnSpy = vi.spyOn(log, 'warn').mockImplementation(() => undefined); await parser.parse(str); - expect(spyOn).toHaveBeenCalledWith('Commit ID working on MDR already exists'); + expect(logWarnSpy).toHaveBeenCalledWith('Commit ID working on MDR already exists'); - spyOn.mockRestore(); + logWarnSpy.mockRestore(); }); });