From b9af99441a5a2016624308d346688726362b3c67 Mon Sep 17 00:00:00 2001 From: Cedric Enclos Date: Thu, 25 Oct 2018 15:24:50 +0200 Subject: [PATCH] fix(type): fix a bug in RichLogootSOperation.fromPlain --- src/sync/RichLogootSOperation.ts | 2 +- test/Sync.test.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sync/RichLogootSOperation.ts b/src/sync/RichLogootSOperation.ts index 2afe407..5906fd7 100644 --- a/src/sync/RichLogootSOperation.ts +++ b/src/sync/RichLogootSOperation.ts @@ -22,7 +22,7 @@ export class RichLogootSOperation { const logootSDel = LogootSDel.fromPlain(o.logootSOp) if (logootSDel instanceof LogootSDel && o.dependencies.length > 0) { - return new RichLogootSOperation(o.id, o.clock, logootSDel, o.dependencies) + return new RichLogootSOperation(o.id, o.clock, logootSDel, o.dependencies as Dot[]) } } diff --git a/test/Sync.test.ts b/test/Sync.test.ts index 62872b8..8261afb 100644 --- a/test/Sync.test.ts +++ b/test/Sync.test.ts @@ -63,7 +63,6 @@ test('deliver-operations-in-causal-order', (context) => { let counter = 0 context.plan(richLogootSOps.length * 2) - sync.remoteLogootSOperations$.subscribe((o) => console.log(o)) return sync.remoteLogootSOperations$.pipe( map(({ operations }) => { context.is(operations.length, 1)