From 6ef053b9db6beed39d8f9e6f8ca7fb9be7ab1a6f Mon Sep 17 00:00:00 2001 From: lenkan Date: Sun, 14 Apr 2024 14:48:28 +0200 Subject: [PATCH] add assertion --- examples/integration-scripts/delegation.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/integration-scripts/delegation.test.ts b/examples/integration-scripts/delegation.test.ts index 529b82c5..48b842c5 100644 --- a/examples/integration-scripts/delegation.test.ts +++ b/examples/integration-scripts/delegation.test.ts @@ -118,11 +118,11 @@ test('delegation', async () => { await waitOperation(client2, await rpyResult2.op()); const oobis = await client2.oobis().get('delegate'); - console.log(oobis); - await getOrCreateContact( + const contactId = await getOrCreateContact( client1, 'delegate', oobis.oobis[0].split('/agent/')[0] ); - // console.log(res); + + expect(contactId).toEqual(aid2.prefix); }, 600000);