Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(config): cover self_upgrade.channel in the file-plane key cases
garrytanc3e649aecc6b
diff --git a/test/config-file-plane-keys.test.ts b/test/config-file-plane-keys.test.tsindex 3b8a6886fd..1c447425f2 100644--- a/test/config-file-plane-keys.test.ts+++ b/test/config-file-plane-keys.test.ts@@ -413,6 +413,8 @@ describe('config set — self_upgrade.* keys are FILE-plane canonical (#5489)',const VALID_CASES: ReadonlyArray<{ leaf: string; raw: string; stored: unknown }> = [{ leaf: 'mode', raw: 'auto', stored: 'auto' },{ leaf: 'mode', raw: 'off', stored: 'off' },+ { leaf: 'channel', raw: 'stable', stored: 'stable' },+ { leaf: 'channel', raw: 'latest', stored: 'latest' },{ leaf: 'mode_prompted', raw: 'false', stored: false },{ leaf: 'mode_prompted', raw: 'yes', stored: true },{ leaf: 'quiet_hours', raw: '{"start":1,"end":5,"tz":"UTC"}', stored: { start: 1, end: 5, tz: 'UTC' } },@@ -554,6 +556,8 @@ describe('config set — self_upgrade.* keys are FILE-plane canonical (#5489)',const INVALID_CASES: ReadonlyArray<{ leaf: string; raw: string }> = [{ leaf: 'mode', raw: 'yes' },{ leaf: 'mode', raw: 'Auto' },+ { leaf: 'channel', raw: 'beta' },+ { leaf: 'channel', raw: 'Stable' },{ leaf: 'mode_prompted', raw: 'maybe' },{ leaf: 'quiet_hours', raw: 'not-json' },{ leaf: 'quiet_hours', raw: '[1,5]' },