test(tui): type session key assertion · openclaw/openclaw@c10bbdd
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
Commit c10bbdd
test(tui): type session key assertion
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -413,7 +413,7 @@ describe("tui command handlers", () => {
|
413 | 413 | |
414 | 414 | // /new creates a unique session key (isolates TUI client) (#39217) |
415 | 415 | expect(setSessionMock).toHaveBeenCalledTimes(1); |
416 | | -const newSessionKey = setSessionMock.mock.calls[0]?.[0]; |
| 416 | +const newSessionKey = setSessionMock.mock.calls[0]?.[0] as string | undefined; |
417 | 417 | if (!newSessionKey) { |
418 | 418 | throw new Error("expected /new to set a TUI session key"); |
419 | 419 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
0 commit comments
Comments
(0)