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