test: tighten feishu dynamic agent config assertion

This commit is contained in:
Shakker
2026-05-10 19:36:15 +01:00
parent aced038cb6
commit bfbbcb73fa

View File

@@ -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);