We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1a4300 commit 9d5eb4fCopy full SHA for 9d5eb4f
1 file changed
tests/unit/lib/pathRandom.spec.ts
@@ -81,7 +81,7 @@ describe('pathRandom', () => {
81
const result = await pathRandom(graph, 'A', 'C');
82
expect(consoleErrorSpy).toHaveBeenCalled();
83
const errorCall = consoleErrorSpy.mock.calls[0];
84
- expect(errorCall[1]).toContain('no person found');
+ expect(errorCall[0]).toContain('no person found');
85
});
86
87
it('logs error when path dead-ends before target', async () => {
0 commit comments