diff --git a/integration-tests/cheqd-credentials.test.ts b/integration-tests/cheqd-credentials.test.ts index 5fd7f3b9..9e15e2e4 100644 --- a/integration-tests/cheqd-credentials.test.ts +++ b/integration-tests/cheqd-credentials.test.ts @@ -53,53 +53,5 @@ describe('Cheq integration tests', () => { expect(certsResponse.verified).toBe(true); }); - - it('should verify a ZKP cheqd credential', async () => { - const wallet: IWallet = await getWallet(); - - getCredentialProvider().addCredential(CheqdCredentialZKP); - - const proofRequest = await createProofRequest( - ProofTemplateIds.ANY_CREDENTIAL, - ); - - const result: any = await getCredentialProvider().isValid(CheqdCredentialZKP); - - expect(result).toBeTruthy(); - - const controller = await createVerificationController({ - wallet, - }); - - await controller.start({ - template: proofRequest, - }); - - const attributesToReveal = ['credentialSubject.name']; - - controller.selectedCredentials.set(CheqdCredentialZKP.id, { - credential: CheqdCredentialZKP, - attributesToReveal - }); - - const presentation = await controller.createPresentation(); - console.log('Presentation generated'); - console.log(JSON.stringify(presentation, null, 2)); - console.log('Sending presentation to Certs API'); - - let certsResponse; - try { - certsResponse = await controller.submitPresentation(presentation); - console.log('CERTS response'); - console.log(JSON.stringify(certsResponse, null, 2)); - } catch (err) { - certsResponse = err.response.data; - console.log('Certs API returned an error'); - console.log(JSON.stringify(certsResponse, null, 2)); - } - - expect(certsResponse.verified).toBe(true); - }); - afterAll(() => closeWallet()); });