@@ -161,7 +161,7 @@ describe('Tests for Rules Engine Subject Field Validation', () => {
161161 const mockKeyCredential = mockPresentationParty . verifiableCredential [ 1 ] ;
162162 const resultBuildChain = await buildCredentialChain ( mock_getExternalCredential , mockPresentationParty , mockKeyCredential ) ;
163163
164- const result = await validateExtendedCompanyPrefixCredential ( "GS1CompanyPrefixLicenseCredential " , resultBuildChain ) ;
164+ const result = await validateExtendedCompanyPrefixCredential ( "KeyCredential " , resultBuildChain ) ;
165165 expect ( result . verified ) . toBe ( true ) ;
166166 } )
167167
@@ -170,7 +170,7 @@ describe('Tests for Rules Engine Subject Field Validation', () => {
170170 const resultBuildChain = await buildCredentialChain ( mock_getExternalCredential , mockPresentationParty , mockKeyCredential ) ;
171171 resultBuildChain . extendedCredentialChain = undefined ;
172172
173- const result = await validateExtendedCompanyPrefixCredential ( "GS1CompanyPrefixLicenseCredential " , resultBuildChain ) ;
173+ const result = await validateExtendedCompanyPrefixCredential ( "KeyCredential " , resultBuildChain ) ;
174174 expect ( result . verified ) . toBe ( false ) ;
175175 } )
176176
@@ -179,7 +179,7 @@ describe('Tests for Rules Engine Subject Field Validation', () => {
179179 const resultBuildChain = await buildCredentialChain ( mock_getExternalCredential , mockPresentationParty , mockKeyCredential ) ;
180180 resultBuildChain . extendedCredentialChain = undefined ;
181181
182- const result = await validateExtendedCompanyPrefixCredential ( "GS1CompanyPrefixLicenseCredential " , resultBuildChain ) ;
182+ const result = await validateExtendedCompanyPrefixCredential ( "KeyCredential " , resultBuildChain ) ;
183183 expect ( result . verified ) . toBe ( false ) ;
184184 } )
185185
@@ -191,7 +191,7 @@ describe('Tests for Rules Engine Subject Field Validation', () => {
191191
192192 const resultBuildChain = await buildCredentialChain ( mock_getExternalCredential , mockPresentationParty , mockKeyCredential ) ;
193193
194- const result = await validateExtendedCompanyPrefixCredential ( "GS1CompanyPrefixLicenseCredential " , resultBuildChain ) ;
194+ const result = await validateExtendedCompanyPrefixCredential ( "KeyCredential " , resultBuildChain ) ;
195195 expect ( result . verified ) . toBe ( false ) ;
196196 } )
197197
0 commit comments