test: dedupe tui launch mock read

This commit is contained in:
Peter Steinberger
2026-05-13 05:03:53 +01:00
parent b26db874a3
commit a6160b99d9
+1 -1
View File
@@ -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");
}