Removed prints.
This commit is contained in:
parent
4ffe9ab7dc
commit
ae70543a58
|
@ -215,7 +215,6 @@ describe('Datatoken tests', async () => {
|
|||
assert(dt.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(dt.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(dt.lastPriceValue === '0', 'incorrect value for: lastPriceValue')
|
||||
console.log('dt.eventIndex: ', dt.eventIndex)
|
||||
assert(
|
||||
dt.eventIndex !== null && dt.eventIndex > 0,
|
||||
'incorrect value for: eventIndex'
|
||||
|
@ -332,7 +331,6 @@ describe('Datatoken tests', async () => {
|
|||
assert(dt.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(dt.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(dt.lastPriceValue === '0', 'incorrect value for: lastPriceValue')
|
||||
console.log('dt.eventIndex 2: ', dt.eventIndex)
|
||||
assert(
|
||||
dt.eventIndex !== null && dt.eventIndex > 0,
|
||||
'incorrect value for: eventIndex'
|
||||
|
@ -445,7 +443,6 @@ describe('Datatoken tests', async () => {
|
|||
assert(initialToken, 'Invalid initialToken')
|
||||
assert(initialToken.orderCount === '0', 'Invalid initial orderCount')
|
||||
assert(initialToken.orders.length === 0, 'Invalid initial orders')
|
||||
console.log('initialToken.eventIndex: ', initialToken.eventIndex)
|
||||
assert(
|
||||
initialToken.eventIndex !== null && initialToken.eventIndex > 0,
|
||||
'Invalid eventIndex'
|
||||
|
|
|
@ -173,7 +173,6 @@ describe('Dispenser tests', async () => {
|
|||
assert(nft.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(nft.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(nft.orderCount === '0', 'incorrect value for: orderCount')
|
||||
console.log('176 line nft.eventIndex: ', nft.eventIndex)
|
||||
assert(
|
||||
nft.eventIndex !== null && nft.eventIndex > 0,
|
||||
'Invalid eventIndex for NFT creation'
|
||||
|
@ -261,7 +260,6 @@ describe('Dispenser tests', async () => {
|
|||
assert(dt.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(dt.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(dt.lastPriceValue === '0', 'incorrect value for: lastPriceValue')
|
||||
console.log('264 line eventIndex: ', dt.eventIndex)
|
||||
assert(
|
||||
dt.eventIndex !== null && dt.eventIndex > 0,
|
||||
'incorrect value for: eventIndex'
|
||||
|
@ -283,7 +281,6 @@ describe('Dispenser tests', async () => {
|
|||
})
|
||||
const dt = (await minterResponse.json()).data.token
|
||||
assert(dt.minter[1] === user1, 'incorrect value for: minter')
|
||||
console.log('285 line eventIndex: ', dt.eventIndex)
|
||||
assert(dt.eventIndex !== null, 'incorrect value for: eventIndex')
|
||||
})
|
||||
|
||||
|
@ -351,7 +348,6 @@ describe('Dispenser tests', async () => {
|
|||
assert(response.createdTimestamp >= time, 'incorrect: createdTimestamp')
|
||||
assert(response.createdTimestamp < time + 15, 'incorrect: createdTimestamp')
|
||||
assert(response.tx === tx.transactionHash, 'incorrect value for: tx')
|
||||
console.log('355 line response.eventIndex: ', response.eventIndex)
|
||||
assert(
|
||||
response.eventIndex !== null && response.eventIndex > 0,
|
||||
'incorrect value for: eventIndex'
|
||||
|
@ -401,7 +397,6 @@ describe('Dispenser tests', async () => {
|
|||
})
|
||||
const initialActive = (await initialResponse.json()).data.dispenser
|
||||
assert(initialActive.active === false, 'incorrect value for: initialActive')
|
||||
console.log('405 line initialActive.eventIndex: ', initialActive.eventIndex)
|
||||
assert(initialActive.eventIndex !== null, 'incorrect value for: eventIndex')
|
||||
|
||||
// Activate dispenser
|
||||
|
@ -471,7 +466,6 @@ describe('Dispenser tests', async () => {
|
|||
assert(dispense.createdTimestamp >= time, 'incorrect: createdTimestamp')
|
||||
assert(dispense.createdTimestamp < time + 15, 'incorrect: createdTimestamp')
|
||||
assert(dispense.tx === tx.transactionHash, 'incorrect value for: tx')
|
||||
console.log('dispense.eventIndex: ', dispense.eventIndex)
|
||||
assert(dispense.eventIndex !== null, 'incorrect value for: eventIndex')
|
||||
assert(dispense.__typename === 'DispenserTransaction', 'wrong __typename')
|
||||
})
|
||||
|
@ -491,7 +485,6 @@ describe('Dispenser tests', async () => {
|
|||
})
|
||||
const balance = (await response.json()).data.dispenser
|
||||
assert(balance.balance === '0', 'incorrect value for: balance')
|
||||
console.log('495 line balance.eventIndex: ', balance.eventIndex)
|
||||
assert(balance.eventIndex !== null, 'incorrect value for: eventIndex')
|
||||
})
|
||||
|
||||
|
|
|
@ -192,7 +192,6 @@ describe('Fixed Rate Exchange tests', async () => {
|
|||
assert(nft.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(nft.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(nft.orderCount === '0', 'incorrect value for: orderCount')
|
||||
console.log('195 line nft.eventIndex: ', nft.eventIndex)
|
||||
assert(
|
||||
nft.eventIndex !== null && nft.eventIndex > 0,
|
||||
'incorrect value for: eventIndex'
|
||||
|
@ -281,7 +280,6 @@ describe('Fixed Rate Exchange tests', async () => {
|
|||
assert(dt.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(dt.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(dt.lastPriceValue === '0', 'incorrect value for: lastPriceValue')
|
||||
console.log('284 line dt.eventIndex: ', dt.eventIndex)
|
||||
assert(
|
||||
dt.eventIndex !== null && dt.eventIndex > 0,
|
||||
'incorrect value for: eventIndex'
|
||||
|
@ -398,7 +396,6 @@ describe('Fixed Rate Exchange tests', async () => {
|
|||
)
|
||||
assert(fixedTx.from === publisher, 'incorrect value for: tx')
|
||||
assert(fixedTx.to === factoryAddress, 'incorrect value for: tx')
|
||||
console.log('401 line fixed.eventIndex: ', fixed.eventIndex)
|
||||
assert(
|
||||
fixed.eventIndex !== null && fixed.eventIndex > 0,
|
||||
'incorrect value for: eventIndex'
|
||||
|
@ -517,7 +514,6 @@ describe('Fixed Rate Exchange tests', async () => {
|
|||
const updatedActive = (await updatedResponse.json()).data.fixedRateExchange
|
||||
|
||||
assert(updatedActive.active === false, 'incorrect value for: updatedActive')
|
||||
console.log('517 line updatedActive.eventIndex: ', updatedActive.eventIndex)
|
||||
assert(
|
||||
updatedActive.eventIndex !== null && updatedActive.eventIndex > 0,
|
||||
'incorrect value: eventIndex'
|
||||
|
@ -547,7 +543,6 @@ describe('Fixed Rate Exchange tests', async () => {
|
|||
})
|
||||
const updatedActive = (await updatedResponse.json()).data.fixedRateExchange
|
||||
assert(updatedActive.active === true, 'incorrect value for: updatedActive')
|
||||
console.log('546 line updatedActive.eventIndex: ', updatedActive.eventIndex)
|
||||
assert(
|
||||
updatedActive.eventIndex !== null && updatedActive.eventIndex > 0,
|
||||
'incorrect value: eventIndex'
|
||||
|
|
|
@ -183,7 +183,6 @@ describe('NFT tests', async () => {
|
|||
assert(nft.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(nft.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(nft.orderCount === '0', 'incorrect value for: orderCount')
|
||||
console.log('186 line nft.eventIndex: ', nft.eventIndex)
|
||||
assert(
|
||||
nft.eventIndex !== null && nft.eventIndex > 0,
|
||||
'Invalid eventIndex for NFT creation'
|
||||
|
@ -296,7 +295,6 @@ describe('NFT tests', async () => {
|
|||
assert(updatedNft.block >= blockNumber, 'incorrect value for: block')
|
||||
assert(updatedNft.block < blockNumber + 50, 'incorrect value for: block')
|
||||
assert(updatedNft.orderCount === '0', 'incorrect value for: orderCount')
|
||||
console.log('298 line updatedNft.eventIndex: ', updatedNft.eventIndex)
|
||||
assert(
|
||||
updatedNft.eventIndex !== null && updatedNft.eventIndex > 0,
|
||||
'Invalid eventIndex for NFT update'
|
||||
|
@ -324,7 +322,6 @@ describe('NFT tests', async () => {
|
|||
})
|
||||
const updatedNft = (await response.json()).data.nft
|
||||
assert(updatedNft.nftData.key !== null, 'incorrect value for key')
|
||||
console.log('327 line updatedNft.eventIndex: ', updatedNft.eventIndex)
|
||||
assert(
|
||||
updatedNft.eventIndex !== null && updatedNft.eventIndex > 0,
|
||||
'Invalid eventIndex for NFT update'
|
||||
|
|
|
@ -165,10 +165,6 @@ describe('Simple Publish & consume test', async () => {
|
|||
await sleep(3000)
|
||||
const queryResult = await response.json()
|
||||
assert(queryResult.data.nft.id === graphNftToken)
|
||||
console.log(
|
||||
'168 line queryResult.data.nft.eventIndex: ',
|
||||
queryResult.data.nft.eventIndex
|
||||
)
|
||||
assert(
|
||||
queryResult.data.nft.eventIndex !== null &&
|
||||
queryResult.data.nft.eventIndex > 0,
|
||||
|
@ -218,10 +214,6 @@ describe('Simple Publish & consume test', async () => {
|
|||
initialResult.data.nft.owner.id.toLowerCase() ===
|
||||
publisherAccount.toLowerCase()
|
||||
)
|
||||
console.log(
|
||||
'221 line initialResult.data.nft.eventIndex: ',
|
||||
initialResult.data.nft.eventIndex
|
||||
)
|
||||
assert(
|
||||
initialResult.data.nft.eventIndex !== null &&
|
||||
initialResult.data.nft.eventIndex > 0,
|
||||
|
@ -272,10 +264,6 @@ describe('Simple Publish & consume test', async () => {
|
|||
await sleep(3000)
|
||||
const queryResult = await response.json()
|
||||
assert(queryResult.data.nft.owner.id === newOwnerAccount)
|
||||
console.log(
|
||||
'275 line queryResult.data.nft.eventIndex: ',
|
||||
queryResult.data.nft.eventIndex
|
||||
)
|
||||
assert(
|
||||
queryResult.data.nft.eventIndex !== null &&
|
||||
queryResult.data.nft.eventIndex > 0,
|
||||
|
@ -354,10 +342,6 @@ describe('Simple Publish & consume test', async () => {
|
|||
setProviderFee.providerFeeToken.toLowerCase(),
|
||||
'Wrong providerFeeToken set'
|
||||
)
|
||||
console.log(
|
||||
'357 line queryResult.data.order.eventIndex: ',
|
||||
queryResult.data.order.eventIndex
|
||||
)
|
||||
assert(
|
||||
queryResult.data.order.eventIndex !== null,
|
||||
'Invalid eventIndex for order'
|
||||
|
|
|
@ -82,10 +82,6 @@ describe('Tests coverage without provider/aquarius', async () => {
|
|||
await sleep(3000)
|
||||
const queryResult = await response.json()
|
||||
assert(queryResult.data.nft.id === graphNftToken)
|
||||
console.log(
|
||||
'85 line queryResult.data.nft.eventIndex: ',
|
||||
queryResult.data.nft.eventIndex
|
||||
)
|
||||
assert(
|
||||
queryResult.data.nft.eventIndex !== null &&
|
||||
queryResult.data.nft.eventIndex > 0
|
||||
|
|
Loading…
Reference in New Issue