From 997bbf57b4c05e6077abb3b7799be319815547b2 Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Wed, 4 May 2022 18:13:36 +0200 Subject: [PATCH 1/2] test getComputeEnvironments() --- test/integration/Provider.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/integration/Provider.test.ts b/test/integration/Provider.test.ts index b35ffb97..0b6ae86f 100644 --- a/test/integration/Provider.test.ts +++ b/test/integration/Provider.test.ts @@ -32,4 +32,13 @@ describe('Provider tests', async () => { ) assert(fileinfo[0].valid === true, 'Sent file is not valid') }) + + it('Alice tests compute environments', async () => { + const computeEnvs = await providerInstance.getComputeEnvironments(config.providerUri) + console.log(computeEnvs) + }) + + // encrypt + // checkDidFiles + // getComputeEnvironments }) From b40f52d6a68ab86b424839922b819cea08f869d2 Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Wed, 4 May 2022 18:25:12 +0200 Subject: [PATCH 2/2] add assertion --- test/integration/Provider.test.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/integration/Provider.test.ts b/test/integration/Provider.test.ts index 0b6ae86f..94c083ee 100644 --- a/test/integration/Provider.test.ts +++ b/test/integration/Provider.test.ts @@ -35,10 +35,6 @@ describe('Provider tests', async () => { it('Alice tests compute environments', async () => { const computeEnvs = await providerInstance.getComputeEnvironments(config.providerUri) - console.log(computeEnvs) + assert(computeEnvs, 'No Compute environments found') }) - - // encrypt - // checkDidFiles - // getComputeEnvironments })