mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe codex context engine mock read
This commit is contained in:
@@ -211,7 +211,7 @@ function optionalString(value: unknown): string {
|
||||
}
|
||||
|
||||
function requireFirstCallArg(mock: unknown, label: string): unknown {
|
||||
const call = (mock as MockCallReader).mock.calls.at(0);
|
||||
const call = (mock as MockCallReader).mock.calls[0];
|
||||
if (!call) {
|
||||
throw new Error(`expected ${label} to be called`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user