test: dedupe plugin policy mock read

This commit is contained in:
Peter Steinberger
2026-05-13 04:50:28 +01:00
parent 5ca5c59de2
commit 45b0c92b3a

View File

@@ -42,7 +42,7 @@ describe("plugins cli policy mutations", () => {
}
function requireFirstWrittenConfig(): OpenClawConfig {
const call = writeConfigFile.mock.calls.at(0);
const call = writeConfigFile.mock.calls[0];
if (!call) {
throw new Error("expected writeConfigFile to be called");
}