Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(migrations): v0.32.2 phase B fixture imports the page body its file holds (#6982)

garrytanb5acea683fca
diff --git a/test/migrations-v0_32_2.test.ts b/test/migrations-v0_32_2.test.ts
index c0e47e85ae..2ade9a4a81 100644
--- a/test/migrations-v0_32_2.test.ts
+++ b/test/migrations-v0_32_2.test.ts
@@ -184,6 +184,8 @@ describe('phaseBFenceFacts — happy path backfill', () => {
'---\ntype: person\ntitle: Alice\nslug: people/alice\n---\n\n# Alice\n\nNotes about Alice.\n',
'utf-8',
);
+ // #6982: the page's database body is the file's, as an import leaves it; a differing body is held, not overwritten.
+ await engine.putPage('people/alice', { type: 'person', title: 'Alice', compiled_truth: '# Alice\n\nNotes about Alice.', frontmatter: {} });
await seedLegacyFact({ entity_slug: 'people/alice', fact: 'Founded Acme' });
await __testing.phaseBFenceFacts(engine, OPTS);