Skip to content

Commit

Permalink
test: dbg cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Jan 30, 2024
1 parent 015dae4 commit f692297
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docs/examples/document-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f692297

Please sign in to comment.