mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 00:59:21 +00:00
test: dedupe gateway hook mock read
This commit is contained in:
parent
17fa101c16
commit
e68dfa511e
1 changed files with 1 additions and 1 deletions
|
|
@ -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`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue