Skip to content

Commit 019c792

Browse files
committed
test(grok): assert retired orphan injection
1 parent 387d9f2 commit 019c792

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/grok-orphan-adoption.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,10 @@ describe("Grok orphan adoption (#511)", () => {
212212
"",
213213
].join("\n"));
214214

215-
injectGrokConfig(10100, MODELS, { grokHome });
215+
expect(injectGrokConfig(10100, MODELS, { grokHome }))
216+
.toMatchObject({ ok: true, changed: true });
216217
const content = readFileSync(configPath, "utf8");
218+
expect(content).toContain(BEGIN_MARKER);
217219
expect(content).toContain('default = "ocx-retired"');
218220
expect(content).toContain('fork_secondary_model = "ocx-retired"');
219221
expect(content).toContain("[model.ocx-retired]");

0 commit comments

Comments
 (0)