mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
download
This commit is contained in:
parent
cad81b65f5
commit
2d2e41c7f3
@ -24,6 +24,7 @@ describe('Marketplace flow', () => {
|
|||||||
let service1
|
let service1
|
||||||
let price
|
let price
|
||||||
let ocean
|
let ocean
|
||||||
|
let accessService
|
||||||
|
|
||||||
const marketplaceAllowance = 20
|
const marketplaceAllowance = 20
|
||||||
const tokenAmount = 100
|
const tokenAmount = 100
|
||||||
@ -143,8 +144,8 @@ describe('Marketplace flow', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('Marketplace posts asset for sale', async () => {
|
it('Marketplace posts asset for sale', async () => {
|
||||||
const accessService = await ocean.assets.getService(ddo.id, 'access')
|
accessService = await ocean.assets.getService(ddo.id, 'access')
|
||||||
const price = 20
|
price = 20
|
||||||
assert(accessService.attributes.main.dtCost * price === 200)
|
assert(accessService.attributes.main.dtCost * price === 200)
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -157,10 +158,8 @@ describe('Marketplace flow', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// it('Bob consumes asset 1', async () => {
|
it('Bob consumes asset 1', async () => {
|
||||||
// // const config = new Config()
|
await ocean.assets.download(ddo.did, accessService.index, bob.getId(), '~/my-datasets')
|
||||||
// const ocean = await Ocean.getInstance(config)
|
})
|
||||||
// await ocean.assets.download(asset.did, service1.index, bob, '~/my-datasets')
|
|
||||||
// })
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user