mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 03:54:45 +00:00
test: dedupe gateway hook mock read
This commit is contained in:
@@ -32,7 +32,7 @@ async function expectGatewayHookCall(params: {
|
||||
}
|
||||
|
||||
function requireFirstMockCall(mock: { mock: { calls: unknown[][] } }, label: string): unknown[] {
|
||||
const call = mock.mock.calls.at(0);
|
||||
const call = mock.mock.calls[0];
|
||||
if (!call) {
|
||||
throw new Error(`expected ${label} call`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user