1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

remove all doo price tests (#805)

This commit is contained in:
Alex Coseru 2021-05-25 12:19:31 +03:00 committed by GitHub
parent cfbc6a4642
commit 497927a0f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -464,12 +464,6 @@ describe('Marketplace flow', () => {
alice.getId()
)
assert(trxReceipt)
await sleep(aquaSleep)
const exchangeDetails = await ocean.fixedRateExchange.searchforDT(tokenAddress, '0')
const resolvedDDO = await ocean.assets.resolve(ddo.id)
assert(resolvedDDO.price.type === 'exchange')
assert(resolvedDDO.price.value === 1)
assert(resolvedDDO.price.exchange_id === exchangeDetails[0].exchangeID)
})
it('Alice should update the FRE pricing for her asset', async () => {
const exchangeDetails = await ocean.fixedRateExchange.searchforDT(tokenAddress, '0')
@ -480,10 +474,6 @@ describe('Marketplace flow', () => {
alice.getId()
)
assert(trxReceipt)
await sleep(aquaSleep)
const resolvedDDO = await ocean.assets.resolve(ddo.id)
assert(resolvedDDO.price.type === 'exchange')
assert(resolvedDDO.price.value === 2)
})
it('Alice should create a Pool pricing for her asset', async () => {
const dtAmount = '45'
@ -502,23 +492,12 @@ describe('Marketplace flow', () => {
assert(createTx)
const alicePoolAddress = createTx.events.BPoolRegistered.returnValues[0]
assert(alicePoolAddress)
await sleep(aquaSleep)
const resolvedDDO = await ocean.assets.resolve(ddoWithPool.id)
poolLastPrice = resolvedDDO.price.value
assert(resolvedDDO.price.type === 'pool')
assert(resolvedDDO.price.value)
assert(resolvedDDO.price.pools.includes(alicePoolAddress))
})
it('Alice should update the POOL pricing for her asset by buying a DT', async () => {
const poolAddress = await ocean.pool.searchPoolforDT(tokenAddressWithPool)
const buyTx = await ocean.pool.buyDT(alice.getId(), poolAddress[0], '1', '999')
assert(buyTx)
await sleep(aquaSleep)
const resolvedDDO = await ocean.assets.resolve(ddoWithPool.id)
assert(resolvedDDO.price.type === 'pool')
assert(resolvedDDO.price.value !== poolLastPrice)
assert(resolvedDDO.price.pools.includes(poolAddress[0]))
})
it('Alice publishes a dataset but passed data token is invalid', async () => {