1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
This commit is contained in:
Ahmed Ali 2020-06-29 21:17:29 +02:00
parent d5b6bb3221
commit 37d423b8d3

View File

@ -17,15 +17,11 @@ describe('Marketplace flow', () => {
let ddo
let alice
let asset
let accounts
let marketplace
let marketOcean
let contracts
let datatoken
let tokenAddress
let transactionId
let service1
let service2
let price
let ocean
@ -153,13 +149,12 @@ describe('Marketplace flow', () => {
})
it('Bob gets datatokens', async () => {
const ts = await datatoken.transfer(
tokenAddress,
bob.getId(),
transferAmount,
alice.getId()
)
transactionId = ts.transactionHash
await datatoken
.transfer(tokenAddress, bob.getId(), transferAmount, alice.getId())
.then(async () => {
const balance = await datatoken.balance(tokenAddress, bob.getId())
assert(balance.toString() === transferAmount.toString())
})
})
// it('Bob consumes asset 1', async () => {
@ -167,9 +162,5 @@ describe('Marketplace flow', () => {
// const ocean = await Ocean.getInstance(config)
// await ocean.assets.download(asset.did, service1.index, bob, '~/my-datasets')
// })
// it('Bob consumes asset 2', async () => {
// // TODO
// })
})
})