@@ -67,9 +67,9 @@ describe("doctor config flow steps", () => {
|
67 | 67 | |
68 | 68 | expect(result.issueLines).toEqual(["- heartbeat: use agents.defaults.heartbeat"]); |
69 | 69 | expect(result.changeLines).not.toStrictEqual([]); |
70 | | -expect(result.state.fixHints).toContain( |
| 70 | +expect(result.state.fixHints).toStrictEqual([ |
71 | 71 | 'Run "openclaw doctor --fix" to migrate legacy config keys.', |
72 | | -); |
| 72 | +]); |
73 | 73 | expect(result.state.pendingChanges).toBe(true); |
74 | 74 | }); |
75 | 75 | |
@@ -96,9 +96,9 @@ describe("doctor config flow steps", () => {
|
96 | 96 | |
97 | 97 | expect(result.changeLines).toStrictEqual([]); |
98 | 98 | expect(result.state.pendingChanges).toBe(true); |
99 | | -expect(result.state.fixHints).toContain( |
| 99 | +expect(result.state.fixHints).toStrictEqual([ |
100 | 100 | 'Run "openclaw doctor --fix" to migrate legacy config keys.', |
101 | | -); |
| 101 | +]); |
102 | 102 | }); |
103 | 103 | |
104 | 104 | it("commits migration even when post-migration validation has unrelated issues (#76798)", () => { |
@@ -158,7 +158,9 @@ describe("doctor config flow steps", () => {
|
158 | 158 | |
159 | 159 | expect(result.removed).toEqual(["bogus"]); |
160 | 160 | expect(result.state.candidate).toStrictEqual({}); |
161 | | -expect(result.state.fixHints).toContain('Run "openclaw doctor --fix" to remove these keys.'); |
| 161 | +expect(result.state.fixHints).toStrictEqual([ |
| 162 | +'Run "openclaw doctor --fix" to remove these keys.', |
| 163 | +]); |
162 | 164 | }); |
163 | 165 | |
164 | 166 | it("repairs active malformed auth profile metadata after unknown-key cleanup", () => { |
|