From 89830910c5bdde59a4bc6c654527428fa19fe4ca Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Tue, 27 Jan 2026 22:20:59 +0100 Subject: [PATCH] fix(test): update mock client ID references in clean-slate tests Update test expectations from E_newC to eNewC to match the mock return value change from the lint fix commit. --- src/app/op-log/clean-slate/clean-slate.service.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/op-log/clean-slate/clean-slate.service.spec.ts b/src/app/op-log/clean-slate/clean-slate.service.spec.ts index 788b7503de..c663d2e2de 100644 --- a/src/app/op-log/clean-slate/clean-slate.service.spec.ts +++ b/src/app/op-log/clean-slate/clean-slate.service.spec.ts @@ -224,8 +224,8 @@ describe('CleanSlateService', () => { await service.createCleanSlateFromImport(importedState, 'FULL_IMPORT'); const appendedOp = mockOpLogStore.append.calls.mostRecent().args[0] as Operation; - // Should increment clock for new client (oldClient1: 5 → E_newC gets incremented value) - expect(appendedOp.vectorClock.E_newC).toBeGreaterThan(0); + // Should increment clock for new client (oldClient1: 5 → eNewC gets incremented value) + expect(appendedOp.vectorClock.eNewC).toBeGreaterThan(0); }); it('should save snapshot with imported state', async () => { @@ -259,12 +259,12 @@ describe('CleanSlateService', () => { expect(mockOpLogStore.setProtectedClientIds).toHaveBeenCalled(); // The protected IDs should include ALL keys from the SYNC_IMPORT's vector clock - // The new clock will be: { ...multiClientClock, E_newC: increment } + // The new clock will be: { ...multiClientClock, eNewC: increment } const protectedIds = mockOpLogStore.setProtectedClientIds.calls.mostRecent() .args[0] as string[]; // Should contain the new client ID - expect(protectedIds).toContain('E_newC'); + expect(protectedIds).toContain('eNewC'); // Should contain all the old client IDs from the merged clock expect(protectedIds).toContain('oldClient1'); expect(protectedIds).toContain('oldClient2');