mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 22:04:45 +00:00
test: dedupe plugin policy mock read
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user