mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 20:24:46 +00:00
test: dedupe line signature mock read
This commit is contained in:
@@ -26,7 +26,7 @@ describe("validateLineSignature", () => {
|
||||
expect(validateLineSignature(body, "short", secret)).toBe(false);
|
||||
expect(spy).toHaveBeenCalledTimes(1);
|
||||
|
||||
const [left, right] = spy.mock.calls.at(0) ?? [];
|
||||
const [left, right] = spy.mock.calls[0] ?? [];
|
||||
expect(left).toBeInstanceOf(Buffer);
|
||||
expect(right).toBeInstanceOf(Buffer);
|
||||
expect(left?.byteLength).toBe(right?.byteLength);
|
||||
|
||||
Reference in New Issue
Block a user