mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 23:04:45 +00:00
test: dedupe shell env exec mock read
This commit is contained in:
@@ -95,7 +95,7 @@ describe("shell env fallback", () => {
|
||||
}
|
||||
|
||||
function requireExecCall(exec: ReturnType<typeof vi.fn>): unknown[] {
|
||||
const call = exec.mock.calls.at(0);
|
||||
const call = exec.mock.calls[0];
|
||||
if (!call) {
|
||||
throw new Error("expected shell env exec call");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user