mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 20:35:39 -06:00
test: dedupe tui launch mock read
This commit is contained in:
@@ -24,7 +24,7 @@ function createChildProcess(): ChildProcess {
|
||||
|
||||
function expectSpawned(expectedArgs: string[]): SpawnOptions {
|
||||
expect(spawnMock).toHaveBeenCalledOnce();
|
||||
const call = spawnMock.mock.calls.at(0) as [string, string[], SpawnOptions] | undefined;
|
||||
const call = spawnMock.mock.calls[0] as [string, string[], SpawnOptions] | undefined;
|
||||
if (!call) {
|
||||
throw new Error("missing spawn call");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user