Updating test

This commit is contained in:
Jamie Hewitt 2023-03-29 09:49:49 -04:00
parent 86d336ada0
commit 134dcb3258
1 changed files with 1 additions and 10 deletions

View File

@ -601,9 +601,7 @@ describe('veOcean tests', async () => {
body: JSON.stringify(initialQuery) body: JSON.stringify(initialQuery)
}) })
await sleep(2000) await sleep(2000)
console.log('initial response', initialResponse)
const info = (await initialResponse.json()).data.veOCEANs const info = (await initialResponse.json()).data.veOCEANs
console.log('info', info)
assert(info[0].id === Alice.toLowerCase(), 'ID is incorrect') assert(info[0].id === Alice.toLowerCase(), 'ID is incorrect')
assert(info[0].lockedAmount === currentBalance, 'LockedAmount is incorrect') assert(info[0].lockedAmount === currentBalance, 'LockedAmount is incorrect')
assert(info[0].unlockTime === currentLock, 'Unlock time is not correct') assert(info[0].unlockTime === currentLock, 'Unlock time is not correct')
@ -641,15 +639,11 @@ describe('veOcean tests', async () => {
extLockTime, extLockTime,
0 0
) )
console.log('TX3: ', tx3)
console.log('Events: ', tx3.events.DelegateBoost)
console.log('Events: ', tx3.events.DelegateBoost.returnValues)
console.log('Events: ', tx3.events.DelegateBoost.returnValues._token_id)
assert(tx3, 'Transaction failed') assert(tx3, 'Transaction failed')
assert(tx3.events.DelegateBoost, 'No Delegate boost event') assert(tx3.events.DelegateBoost, 'No Delegate boost event')
sleep(3000) sleep(2000)
const delegateQuery = { const delegateQuery = {
query: `query { query: `query {
veDelegations{ veDelegations{
@ -670,9 +664,6 @@ describe('veOcean tests', async () => {
body: JSON.stringify(delegateQuery) body: JSON.stringify(delegateQuery)
}) })
const json = await delegateResponse.json() const json = await delegateResponse.json()
console.log('Json', json)
console.log('Data', json?.data)
console.log('veDelegation', json?.data?.veDelegations)
assert(json?.data?.veDelegations, 'No veDelegations') assert(json?.data?.veDelegations, 'No veDelegations')
}) })
}) })