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

fix: normalize sprite upload path assertion

[._.]/ Adam Eivy4f4c67acd427
diff --git a/server/services/sprites/reference.test.js b/server/services/sprites/reference.test.js
index 3281728597..48004f05ee 100644
--- a/server/services/sprites/reference.test.js
+++ b/server/services/sprites/reference.test.js
@@ -217,7 +217,7 @@ describe('startReferenceGeneration', () => {
await startReferenceGeneration(id, { target: 'turnaround' }, { tempPath: tmp, originalname: 'concept.png' });
const call = enqueueJob.mock.calls[0][0];
expect(call.params.spriteRef.designReferencePath).toMatch(/^reference\/uploads\/.+concept\.png$/);
- expect(call.params.initImagePath).toContain('/reference/uploads/');
+ expect(call.params.initImagePath).toContain(join('reference', 'uploads'));
expect(call.params.initImageStrength).toBe(0.65);
});