1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Fixed integration tests for Provider.ts and Marketplaceflow.ts.

This commit is contained in:
mariacarmina 2021-02-10 17:25:35 +02:00
parent 96f666067a
commit 687fd743c6
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,6 @@ describe('Marketplace flow', () => {
it('Alice should check if her asset has valid url(s)', async () => { it('Alice should check if her asset has valid url(s)', async () => {
const did: DID = DID.generate(noDidPrefixed(ddo.id)) const did: DID = DID.generate(noDidPrefixed(ddo.id))
const response = await ocean.provider.fileinfo(did) const response = await ocean.provider.fileinfo(did)
assert(response[0].valid === true)
assert(response[0].contentLength === '1161') assert(response[0].contentLength === '1161')
assert(response[0].contentType === 'application/json') assert(response[0].contentType === 'application/json')
}) })

View File

@ -25,6 +25,7 @@ describe('Provider tests', () => {
it('Check a invalid URL', async () => { it('Check a invalid URL', async () => {
const url = 'https://s3.amazonaws.com/testfiles.oceanprotocol.com/nosuchfile' const url = 'https://s3.amazonaws.com/testfiles.oceanprotocol.com/nosuchfile'
const response = await ocean.provider.fileinfo(url) const response = await ocean.provider.fileinfo(url)
assert(response[0].valid === false) assert(response[0].contentLength === undefined)
assert(response[0].contentType === undefined)
}) })
}) })