test: tighten browser request timeout assertion

This commit is contained in:
Shakker
2026-05-10 22:37:59 +01:00
parent cc0e449951
commit 077a1f2065

View File

@@ -66,12 +66,9 @@ describe("browser.request local timeout", () => {
expect(dispatchTask).toBeTypeOf("function");
expect(timeoutMs).toBe(4321);
expect(timeoutLabel).toBe("browser request");
expect(respond).toHaveBeenCalledWith(
false,
undefined,
expect.objectContaining({
message: "Error: browser request timed out",
}),
);
expect(respond).toHaveBeenCalledWith(false, undefined, {
code: "UNAVAILABLE",
message: "Error: browser request timed out",
});
});
});