From b557d6d0fbc6467053cac861ac12b9252430f952 Mon Sep 17 00:00:00 2001 From: lenkan Date: Tue, 3 Sep 2024 15:30:27 +0200 Subject: [PATCH] fix test --- examples/integration-scripts/challenge.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/integration-scripts/challenge.test.ts b/examples/integration-scripts/challenge.test.ts index 8eb1bb8d..80e79000 100644 --- a/examples/integration-scripts/challenge.test.ts +++ b/examples/integration-scripts/challenge.test.ts @@ -125,7 +125,8 @@ test('challenge', async () => { contacts1 = await client1.contacts().list(); bobContact = contacts1.find((contact) => contact.alias === 'bob'); - expect(bobContact?.challenges).toEqual([{ authenticated: true }]); + assert(Array.isArray(bobContact?.challenges)); + expect(bobContact?.challenges[0].authenticated).toBe(true); await assertOperations(client1, client2); }, 30000);