mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-04 03:21:29 +00:00
test(config): tighten immutable unsetPaths regression assertions
This commit is contained in:
committed by
Gustavo Madeira Santana
parent
fb5409eac2
commit
de7cf963e4
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user