Skip to content

Commit 15f1b3e

Browse files
committed
remove checkq zkp test
1 parent d1d9492 commit 15f1b3e

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

integration-tests/cheqd-credentials.test.ts

-48
Original file line numberDiff line numberDiff line change
@@ -53,53 +53,5 @@ describe('Cheq integration tests', () => {
5353
expect(certsResponse.verified).toBe(true);
5454
});
5555

56-
57-
it('should verify a ZKP cheqd credential', async () => {
58-
const wallet: IWallet = await getWallet();
59-
60-
getCredentialProvider().addCredential(CheqdCredentialZKP);
61-
62-
const proofRequest = await createProofRequest(
63-
ProofTemplateIds.ANY_CREDENTIAL,
64-
);
65-
66-
const result: any = await getCredentialProvider().isValid(CheqdCredentialZKP);
67-
68-
expect(result).toBeTruthy();
69-
70-
const controller = await createVerificationController({
71-
wallet,
72-
});
73-
74-
await controller.start({
75-
template: proofRequest,
76-
});
77-
78-
const attributesToReveal = ['credentialSubject.name'];
79-
80-
controller.selectedCredentials.set(CheqdCredentialZKP.id, {
81-
credential: CheqdCredentialZKP,
82-
attributesToReveal
83-
});
84-
85-
const presentation = await controller.createPresentation();
86-
console.log('Presentation generated');
87-
console.log(JSON.stringify(presentation, null, 2));
88-
console.log('Sending presentation to Certs API');
89-
90-
let certsResponse;
91-
try {
92-
certsResponse = await controller.submitPresentation(presentation);
93-
console.log('CERTS response');
94-
console.log(JSON.stringify(certsResponse, null, 2));
95-
} catch (err) {
96-
certsResponse = err.response.data;
97-
console.log('Certs API returned an error');
98-
console.log(JSON.stringify(certsResponse, null, 2));
99-
}
100-
101-
expect(certsResponse.verified).toBe(true);
102-
});
103-
10456
afterAll(() => closeWallet());
10557
});

0 commit comments

Comments
 (0)