style: use bracket notation for __openclaw to satisfy no-underscore-d… · openclaw/openclaw@9a6c161
SebTardif
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2015,7 +2015,7 @@ describe("oversized transcript line guards", () => {
|
2015 | 2015 | const oversized = out[1] as Record<string, unknown>; |
2016 | 2016 | expect(oversized.role).toBe("assistant"); |
2017 | 2017 | // id is preserved in __openclaw transcript metadata |
2018 | | -const meta = (oversized as Record<string, Record<string, unknown>>).__openclaw; |
| 2018 | +const meta = (oversized as Record<string, Record<string, unknown>>)["__openclaw"]; |
2019 | 2019 | expect(meta?.id).toBe("oversized-child"); |
2020 | 2020 | // parentId extraction is proven by the record being included: |
2021 | 2021 | // if parentId was not extracted, the tree would orphan this node. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。