resolve PR comment

Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
darshanr0107
2025-07-03 15:39:26 +05:30
committed by GitHub
parent 648698a43a
commit fb017bebfd

View File

@@ -1349,12 +1349,12 @@ describe('when parsing a gitGraph', function () {
commit id:"work on v1.1" 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); 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();
}); });
}); });