test: dedupe line signature mock read · openclaw/openclaw@898a5aa
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ describe("validateLineSignature", () => {
|
26 | 26 | expect(validateLineSignature(body, "short", secret)).toBe(false); |
27 | 27 | expect(spy).toHaveBeenCalledTimes(1); |
28 | 28 | |
29 | | -const [left, right] = spy.mock.calls.at(0) ?? []; |
| 29 | +const [left, right] = spy.mock.calls[0] ?? []; |
30 | 30 | expect(left).toBeInstanceOf(Buffer); |
31 | 31 | expect(right).toBeInstanceOf(Buffer); |
32 | 32 | expect(left?.byteLength).toBe(right?.byteLength); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。