mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:24:46 +00:00
test: dedupe agents identity mock read
This commit is contained in:
@@ -43,7 +43,7 @@ async function writeIdentityFile(workspace: string, lines: string[]) {
|
||||
}
|
||||
|
||||
function getWrittenMainIdentity() {
|
||||
const [written] = configMocks.writeConfigFile.mock.calls.at(0) ?? [];
|
||||
const [written] = configMocks.writeConfigFile.mock.calls[0] ?? [];
|
||||
if (!written) {
|
||||
throw new Error("expected written agent config");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user