Skip to content

Commit 0ffe42f

Browse files
committed
fix: remove unnecessary non-null assertions in tests
1 parent 8cea418 commit 0ffe42f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/__tests__/reasoning-web-search.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ describe("POST /v1/responses (web search streaming)", () => {
251251

252252
const events = parseResponsesSSEEvents(res.body);
253253
const completed = events.find((e) => e.type === "response.completed") as SSEEvent & {
254-
response: { output: { type: string; action?: { query: string } }[] };
254+
response: { output: { type: string; action: { query: string } }[] };
255255
};
256256
expect(completed).toBeDefined();
257257

258258
const searchOutputs = completed.response.output.filter((o) => o.type === "web_search_call");
259259
expect(searchOutputs).toHaveLength(2);
260-
expect(searchOutputs[0].action!.query).toBe("latest news");
261-
expect(searchOutputs[1].action!.query).toBe("weather forecast");
260+
expect(searchOutputs[0].action.query).toBe("latest news");
261+
expect(searchOutputs[1].action.query).toBe("weather forecast");
262262
});
263263
});
264264

0 commit comments

Comments
 (0)