diff --git a/src/provider/Provider.ts b/src/provider/Provider.ts index 1bd304828..e8a1a0906 100644 --- a/src/provider/Provider.ts +++ b/src/provider/Provider.ts @@ -77,7 +77,7 @@ export class Provider extends Instantiable { * @param {String} url * @return {Promise} urlDetails */ - public async checkURL(url: string): Promise { + public async checkUrl(url: string): Promise { const args = { url } try { const response = await this.ocean.utils.fetch.post( diff --git a/test/integration/Provider.test.ts b/test/integration/Provider.test.ts index ddfc0d9a6..f9d6b2962 100644 --- a/test/integration/Provider.test.ts +++ b/test/integration/Provider.test.ts @@ -18,14 +18,14 @@ describe('Provider tests', () => { }) it('Check a valid URL', async () => { const url = 'https://s3.amazonaws.com/testfiles.oceanprotocol.com/info.0.json' - const response = await ocean.provider.checkURL(url) + const response = await ocean.provider.checkUrl(url) assert(response != null) assert(response.contentLength === '1161') assert(response.contentType === 'application/json') }) it('Check a invalid URL', async () => { const url = 'https://s3.amazonaws.com/testfiles.oceanprotocol.com/nosuchfile' - const response = await ocean.provider.checkURL(url) + const response = await ocean.provider.checkUrl(url) assert(response === null) }) })