Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: tolerate autocrlf line endings in staged-fix patch assertion

[._.]/ Adam Eivy5e81a5317851
diff --git a/autofixer/stagedFixes.test.js b/autofixer/stagedFixes.test.js
index a33564a652..6d90366db3 100644
--- a/autofixer/stagedFixes.test.js
+++ b/autofixer/stagedFixes.test.js
@@ -28,7 +28,7 @@ describe('staged repair lifecycle', () => {
expect((await store.read(id)).patch).toBe(patch);
const results = await Promise.all([store.mutate(id, 'apply'), store.mutate(id, 'apply')]);
expect(results.map(result => result.status || 200)).toEqual([200, 404]);
- expect(await readFile(join(repo, 'example.txt'), 'utf8')).toBe('new\n');
+ expect((await readFile(join(repo, 'example.txt'), 'utf8')).replace(/\r\n/g, '\n')).toBe('new\n');
expect(restart).toHaveBeenCalledExactlyOnceWith(['restart', 'example-process']);
expect(await store.decorateHistory([{ sessionId: id, staged: true }])).toEqual([
{ sessionId: id, staged: false, promoted: true, disposition: 'applied' },