mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 00:59:21 +00:00
test: tighten feishu dynamic agent config assertion
This commit is contained in:
parent
aced038cb6
commit
bfbbcb73fa
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ describe("maybeCreateDynamicAgent", () => {
|
|||
expect(result.agentId).toBe("feishu-ou_sender");
|
||||
expect(replaceConfigFile).toHaveBeenCalledTimes(1);
|
||||
expect(replaceConfigFile).toHaveBeenCalledWith({
|
||||
nextConfig: expect.objectContaining({
|
||||
nextConfig: {
|
||||
agents: {
|
||||
list: [
|
||||
{
|
||||
|
|
@ -116,7 +116,7 @@ describe("maybeCreateDynamicAgent", () => {
|
|||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
},
|
||||
afterWrite: { mode: "auto" },
|
||||
});
|
||||
expect(await pathExists(path.join(tempRoot, "workspace-feishu-ou_sender"))).toBe(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue