From f692297359f0918900bf8852ecd9638996ec95dd Mon Sep 17 00:00:00 2001 From: Marcus Pousette Date: Tue, 30 Jan 2024 12:27:10 +0100 Subject: [PATCH] test: dbg cleanup --- docs/examples/document-store.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/docs/examples/document-store.ts b/docs/examples/document-store.ts index 89969d055..8dd969cae 100644 --- a/docs/examples/document-store.ts +++ b/docs/examples/document-store.ts @@ -95,22 +95,8 @@ const responses: Post[] = await store2.posts.index.search( } ); -try { - expect(responses).toHaveLength(1); - expect(responses.map((x) => x.message)).toEqual(["hello world"]); -} catch (error) { - console.log( - store2.posts.log.log.length, - store2.posts.log["syncInFlight"].size, - store2.posts.index.size, - store.posts.index.size - ); - console.log(store2.posts.log.getReplicatorUnion(0)); - const union2 = store2.posts.log.getReplicatorUnion(0); - console.log(union, union2); - - throw error; -} +expect(responses).toHaveLength(1); +expect(responses.map((x) => x.message)).toEqual(["hello world"]); /// [another-client] /// [disconnecting]