Skip to content

Commit 06166c7

Browse files
committed
test(gateway): avoid unsafe optional chain
1 parent 8543f6f commit 06166c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/gateway/session-history-state.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ describe("SessionHistorySseState", () => {
139139
messageSeq: 2,
140140
});
141141

142+
expect(appended).toBeDefined();
142143
expect(appended?.messageSeq).toBe(2);
143144
expect(
144145
(
145-
appended?.message as {
146+
appended!.message as {
146147
__openclaw?: { id?: string; idempotencyKey?: string; seq?: number };
147148
}
148149
)["__openclaw"],

0 commit comments

Comments
 (0)