Skip to content

Commit 6a58901

Browse files
committed
test: dedupe memory wiki gateway mock reads
1 parent 3945fd5 commit 6a58901

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/memory-wiki/src/gateway.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ function readGatewayMethodOptions(
9292
}
9393

9494
function readRespondPayload(respond: { mock: { calls: Array<Array<unknown>> } }): unknown {
95-
const call = respond.mock.calls.at(0);
95+
const call = respond.mock.calls[0];
9696
expect(call?.[0]).toBe(true);
9797
return call?.[1];
9898
}
9999

100100
function readRespondError(respond: { mock: { calls: Array<Array<unknown>> } }): unknown {
101-
const call = respond.mock.calls.at(0);
101+
const call = respond.mock.calls[0];
102102
expect(call?.[0]).toBe(false);
103103
expect(call?.[1]).toBeUndefined();
104104
return call?.[2];

0 commit comments

Comments
 (0)