mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: dedupe brave fetch mock read
This commit is contained in:
@@ -73,7 +73,7 @@ function readHeader(init: unknown, name: string): string | null {
|
||||
}
|
||||
|
||||
function fetchCall(mockFetch: { mock: { calls: Array<Array<unknown>> } }, index = 0) {
|
||||
const call = mockFetch.mock.calls.at(index);
|
||||
const call = mockFetch.mock.calls[index];
|
||||
if (!call) {
|
||||
throw new Error(`Expected fetch call ${index + 1}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user