From 1bc8a01a201005ef8fce9efeaa13c55637d8f882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Lenksj=C3=B6?= <5889538+lenkan@users.noreply.github.com> Date: Tue, 27 Aug 2024 13:35:36 +0200 Subject: [PATCH] add assertion for correct resolution of delegatee oobi (#252) --- 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);