test: tighten command config cleanup assertions

This commit is contained in:
Shakker
2026-05-09 03:59:03 +01:00
parent fa04bb9175
commit 1b60d4f761
4 changed files with 4 additions and 4 deletions

View File

@@ -455,7 +455,7 @@ describe("channels command", () => {
const next = await addAlertsTelegramAccount("alerts-token");
expect(next.channels?.telegram?.enabled).toBe(true);
expect(next.channels?.telegram?.accounts?.default).toEqual({});
expect(next.channels?.telegram?.accounts?.default).toStrictEqual({});
expect(next.channels?.telegram?.accounts?.alerts?.botToken).toBe("alerts-token");
});

View File

@@ -29,6 +29,6 @@ describe("doctor config analysis helpers", () => {
} as never);
expect(result.removed).toContain("unexpected");
expect((result.config as Record<string, unknown>).unexpected).toBeUndefined();
expect((result.config as Record<string, unknown>).hooks).toEqual({});
expect((result.config as Record<string, unknown>).hooks).toStrictEqual({});
});
});

View File

@@ -351,7 +351,7 @@ describe("legacy migrate sandbox scope aliases", () => {
"Removed agents.list.0.agentRuntime; runtime is now provider/model scoped.",
]),
);
expect(res.config?.agents?.defaults).toEqual({});
expect(res.config?.agents?.defaults).toStrictEqual({});
expect(res.config?.agents?.list?.[0]).toEqual({
id: "reviewer",
});

View File

@@ -264,7 +264,7 @@ describe("doctor stale plugin config helpers", () => {
},
});
expect(result.config.agents?.defaults?.heartbeat).toEqual({ every: "30m" });
expect(result.config.agents?.list?.[0]?.heartbeat).toEqual({});
expect(result.config.agents?.list?.[0]?.heartbeat).toStrictEqual({});
expect(result.config.agents?.list?.[1]?.heartbeat).toEqual({ target: "telegram" });
});