mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 06:34:46 +00:00
test: clear rebased ci helper typing
This commit is contained in:
@@ -54,7 +54,7 @@ function makeGatewayService(
|
||||
} as unknown as GatewayService;
|
||||
}
|
||||
|
||||
function firstCallArg<T>(mock: { mock: { calls: unknown[][] } }): T {
|
||||
function firstCallArg<T>(mock: { mock: { calls: unknown[][] } }, _type?: (value: T) => T): T {
|
||||
const call = mock.mock.calls[0];
|
||||
expect(call).toBeDefined();
|
||||
return call?.[0] as T;
|
||||
|
||||
Reference in New Issue
Block a user