From d125543bca3e99e2eb3c34c9f5eaaebff7b0e3a3 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 29 Mar 2023 22:08:45 -0400 Subject: [PATCH] Updating tests --- test/integration/VeOcean.test.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/test/integration/VeOcean.test.ts b/test/integration/VeOcean.test.ts index 85db5f5..c48ab63 100644 --- a/test/integration/VeOcean.test.ts +++ b/test/integration/VeOcean.test.ts @@ -646,7 +646,7 @@ describe('veOcean tests', async () => { sleep(2000) const delegateQuery = { query: `query { - veDelegation(id:"${tx3.events.DelegateBoost.returnValues._token_id}"){ + veDelegations{ id, delegator { id @@ -669,15 +669,7 @@ describe('veOcean tests', async () => { }) const json = await delegateResponse.json() console.log('json', json) - console.log('json?.data?.veDelegation', json?.data?.veDelegation) - console.log( - 'json?.data?.veDelegation', - json?.data?.veDelegation?.amountFraction - ) - assert(json?.data?.veDelegation, 'No veDelegations') - assert( - json?.data?.veDelegation.amountFraction, - 'No veDelegation amountFraction' - ) + console.log('json?.data?.veDelegations', json?.data?.veDelegations) + assert(json?.data?.veDelegations, 'No veDelegations') }) })