Skip to content

Commit 8a6c18a

Browse files
committed
test: dedupe control ui http mock reads
1 parent 3779c10 commit 8a6c18a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gateway/control-ui.http.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ describe("handleControlUiHttpRequest", () => {
4242
}
4343

4444
function responseBody(end: ReturnType<typeof makeMockHttpResponse>["end"]) {
45-
return String(end.mock.calls.at(0)?.[0] ?? "");
45+
return String(end.mock.calls[0]?.[0] ?? "");
4646
}
4747

4848
function responseJson(end: ReturnType<typeof makeMockHttpResponse>["end"]) {
4949
return JSON.parse(responseBody(end)) as unknown;
5050
}
5151

5252
function firstEndCallLength(end: ReturnType<typeof makeMockHttpResponse>["end"]) {
53-
return end.mock.calls.at(0)?.length ?? -1;
53+
return end.mock.calls[0]?.length ?? -1;
5454
}
5555

5656
function expectNotFoundResponse(params: {

0 commit comments

Comments
 (0)