style(test): biome format

main
Peter Steinberger 2025-12-12 18:07:33 +00:00
parent 37eaa49e4c
commit 9ea697ac09
2 changed files with 55 additions and 44 deletions

View File

@ -481,7 +481,10 @@ describe("gateway server", () => {
await server.close();
});
test("agent ack response then final response", { timeout: 8000 }, async () => {
test(
"agent ack response then final response",
{ timeout: 8000 },
async () => {
const { server, ws } = await startServerWithClient();
ws.send(
JSON.stringify({
@ -502,12 +505,16 @@ describe("gateway server", () => {
const ackP = onceMessage(
ws,
(o) =>
o.type === "res" && o.id === "ag1" && o.payload?.status === "accepted",
o.type === "res" &&
o.id === "ag1" &&
o.payload?.status === "accepted",
);
const finalP = onceMessage(
ws,
(o) =>
o.type === "res" && o.id === "ag1" && o.payload?.status !== "accepted",
o.type === "res" &&
o.id === "ag1" &&
o.payload?.status !== "accepted",
);
ws.send(
JSON.stringify({
@ -526,7 +533,8 @@ describe("gateway server", () => {
ws.close();
await server.close();
});
},
);
test(
"agent dedupes by idempotencyKey after completion",

View File

@ -74,7 +74,10 @@ describe("tau-rpc", () => {
expect(writes.length).toBeGreaterThan(0);
const first = writes[0]?.trim();
expect(first?.endsWith("\n")).toBe(false);
const obj = JSON.parse(first ?? "{}") as { type?: string; message?: unknown };
const obj = JSON.parse(first ?? "{}") as {
type?: string;
message?: unknown;
};
expect(obj.type).toBe("prompt");
expect(obj.message).toBe("hello");
});