mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 09:24:46 +00:00
test: tighten feishu dynamic agent config assertion
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user