@@ -53,53 +53,5 @@ describe('Cheq integration tests', () => {
53
53
expect ( certsResponse . verified ) . toBe ( true ) ;
54
54
} ) ;
55
55
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
-
104
56
afterAll ( ( ) => closeWallet ( ) ) ;
105
57
} ) ;
0 commit comments