From d91dd5a8a89fabe2fdc0c35269e3359fed2be891 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Wed, 12 Jan 2022 11:46:59 +0200 Subject: [PATCH] update provider tests --- package.json | 1 + test/integration/Provider.test.ts | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fa30db05..785b5898 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "test:unit": "npm run mocha -- 'test/unit/**/*.test.ts'", "test:unit:cover": "nyc --report-dir coverage/unit npm run test:unit", "test:integration": "npm run mocha -- 'test/integration/**/*.test.ts'", + "test:provider": "npm run mocha -- 'test/integration/Provider.test.ts'", "test:integration:cover": "nyc --report-dir coverage/integration --no-clean npm run test:integration" }, "repository": { diff --git a/test/integration/Provider.test.ts b/test/integration/Provider.test.ts index cabdeee9..de90d2db 100644 --- a/test/integration/Provider.test.ts +++ b/test/integration/Provider.test.ts @@ -11,14 +11,17 @@ describe('Provider tests', () => { }) it('Alice tests invalid provider', async () => { - const valid = await providerInstance.isValidProvider('http://example.net', fetchData) + const valid = await providerInstance.isValidProvider( + 'http://example.net', + crossFetchGeneric + ) assert(valid === false) }) it('Alice tests valid provider', async () => { const valid = await providerInstance.isValidProvider( 'http://127.0.0.1:8030', - fetchData + crossFetchGeneric ) assert(valid === true) })