Skip to content

Commit c744272

Browse files
committed
fix(tui): drop non-null assertion in MCP reconnect surface test
1 parent 5a257d4 commit c744272

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/tui/mcp-reconnect-surface.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ async function withShell(
4949

5050
describe("mcp reconnecting surface", () => {
5151
test("the row label shows the attempt and the retained tool count", () => {
52-
expect(mcpRowLabel(entries[0]!)).toBe(
52+
const entry = entries[0];
53+
if (!entry) {
54+
throw new Error("expected reconnecting entry");
55+
}
56+
expect(mcpRowLabel(entry)).toBe(
5357
"acme — reconnecting · attempt 3 · 2 tools",
5458
);
5559
});

0 commit comments

Comments
 (0)