From ab7236211bec09ad310cd0db863d5c8377e08f8a Mon Sep 17 00:00:00 2001 From: Marcus Pousette Date: Fri, 15 Dec 2023 21:00:18 +0100 Subject: [PATCH] fix: improve assertion --- .../programs/data/shared-log/src/__tests__/replicate.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/programs/data/shared-log/src/__tests__/replicate.test.ts b/packages/programs/data/shared-log/src/__tests__/replicate.test.ts index 6c1d31c79..3c198c693 100644 --- a/packages/programs/data/shared-log/src/__tests__/replicate.test.ts +++ b/packages/programs/data/shared-log/src/__tests__/replicate.test.ts @@ -371,7 +371,7 @@ describe(`exchange`, function () { // All entries should be in the database await waitForResolved(async () => - expect((await db2.iterator({ limit: -1 })).collect()).toHaveLength( + expect((await db2.iterator({ limit: -1 })).collect().length).toEqual( entryCount * 2 ) );