test(config): tighten immutable unsetPaths regression assertions

This commit is contained in:
Frank Yang
2026-02-22 20:16:47 -08:00
committed by Gustavo Madeira Santana
parent fb5409eac2
commit de7cf963e4

View File

@@ -140,6 +140,10 @@ describe("config io write", () => {
await io.writeConfigFile(input, { unsetPaths: [["commands", "ownerDisplay"]] });
expect(input).toEqual({
gateway: { mode: "local" },
commands: { ownerDisplay: "hash" },
});
expect((input.commands as Record<string, unknown>).ownerDisplay).toBe("hash");
const persisted = JSON.parse(await fs.readFile(configPath, "utf-8")) as {
commands?: Record<string, unknown>;