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:
parent
96f666067a
commit
687fd743c6
@ -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')
|
||||||
})
|
})
|
||||||
|
@ -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)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user