From 687fd743c68d420521d164a9649d150e10651ffb Mon Sep 17 00:00:00 2001 From: mariacarmina Date: Wed, 10 Feb 2021 17:25:35 +0200 Subject: [PATCH] Fixed integration tests for Provider.ts and Marketplaceflow.ts. --- test/integration/Marketplaceflow.test.ts | 1 - test/integration/Provider.test.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/Marketplaceflow.test.ts b/test/integration/Marketplaceflow.test.ts index 1e408beb..e4840992 100644 --- a/test/integration/Marketplaceflow.test.ts +++ b/test/integration/Marketplaceflow.test.ts @@ -243,7 +243,6 @@ describe('Marketplace flow', () => { it('Alice should check if her asset has valid url(s)', async () => { const did: DID = DID.generate(noDidPrefixed(ddo.id)) const response = await ocean.provider.fileinfo(did) - assert(response[0].valid === true) assert(response[0].contentLength === '1161') assert(response[0].contentType === 'application/json') }) diff --git a/test/integration/Provider.test.ts b/test/integration/Provider.test.ts index 0bf38f42..6d89c4d2 100644 --- a/test/integration/Provider.test.ts +++ b/test/integration/Provider.test.ts @@ -25,6 +25,7 @@ describe('Provider tests', () => { it('Check a invalid URL', async () => { const url = 'https://s3.amazonaws.com/testfiles.oceanprotocol.com/nosuchfile' const response = await ocean.provider.fileinfo(url) - assert(response[0].valid === false) + assert(response[0].contentLength === undefined) + assert(response[0].contentType === undefined) }) })