mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:04:45 +00:00
test: dedupe status service mock read
This commit is contained in:
@@ -17,7 +17,7 @@ function createService(overrides: Partial<GatewayService>): GatewayService {
|
||||
}
|
||||
|
||||
function requireMockArg(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