From 06933aa2fa26d609b81ae5a5c0c850c851ebb81c Mon Sep 17 00:00:00 2001 From: Ahmed Ali Date: Mon, 29 Jun 2020 18:48:14 +0200 Subject: [PATCH] add resolve test --- test/integration/Marketplaceflow.test.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/integration/Marketplaceflow.test.ts b/test/integration/Marketplaceflow.test.ts index 94909b61..7d60fdd0 100644 --- a/test/integration/Marketplaceflow.test.ts +++ b/test/integration/Marketplaceflow.test.ts @@ -133,15 +133,13 @@ describe('Marketplace flow', () => { ) }) }) + it('Marketplace should resolve asset using DID', async () => { + assert(ddo, await ocean.assets.resolve(ddo.id)) + }) - // it('Marketplace posts asset for sale', async () => { - // const config = new Config() - // marketOcean = await Ocean.getInstance(config) - - // service1 = marketOcean.assets.getService('download') - // service2 = marketOcean.assets.getService('access') - - // }) + it('Marketplace posts asset for sale', async () => { + // const downloadService = await ocean.assets.getService(ddo.id, 'download') + }) it('Bob gets datatokens', async () => { const ts = await datatoken.transfer(