Skip to content

Commit f2fa246

Browse files
committed
test: access __openclaw via bracket notation for no-underscore-dangle
1 parent e1ab3fb commit f2fa246

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gateway/server-methods/chat-history-budget.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe("enforceChatHistoryFinalBudget", () => {
6767
expect(result.messages).toHaveLength(1);
6868
expect(firstText(result.messages)).toContain("chat.history unavailable");
6969
// The sentinel does not carry the oversized source metadata.
70-
expect((result.messages[0] as Record<string, unknown>).__openclaw).toBeUndefined();
70+
expect((result.messages[0] as Record<string, unknown>)["__openclaw"]).toBeUndefined();
7171
expect(result.placeholderCount).toBe(1);
7272
});
7373
});

0 commit comments

Comments
 (0)