@@ -34,15 +34,15 @@ describe('Types', function() {
3434 this . test . link = `https://w3c.github.io/vc-data-model/#types:~:text=Verifiable%20credentials%20and%20verifiable%20presentations%20MUST%20contain%20a%20type%20property%20with%20an%20associated%20value.` ;
3535 await assert . rejects (
3636 endpoints . issue ( require ( './input/credential-no-type-fail.json' ) ) ,
37- { name : 'HTTPError' } ,
37+
3838 'Failed to reject a VC without a type.' ) ;
3939 } ) ;
4040 it ( 'Verifiable presentations MUST contain a type property with an ' +
4141 'associated value.' , async function ( ) {
4242 this . test . link = `https://w3c.github.io/vc-data-model/#types:~:text=Verifiable%20credentials%20and%20verifiable%20presentations%20MUST%20contain%20a%20type%20property%20with%20an%20associated%20value.` ;
4343 await assert . rejects ( endpoints . verifyVp ( require (
4444 './input/presentation-no-type-fail.json' ) ) ,
45- { name : 'HTTPError' } ,
45+
4646 'Failed to reject a VP without a type.' ) ;
4747 } ) ;
4848 it ( 'The value of the type property MUST be one or more terms and/or ' +
@@ -61,12 +61,12 @@ describe('Types', function() {
6161 // type mapped not to URL: fail
6262 await assert . rejects ( endpoints . issue ( require (
6363 './input/credential-type-mapped-nonurl-fail.json' ) ) ,
64- { name : 'HTTPError' } ,
64+
6565 'Failed to reject a VC with type mapped to an invalid URL.' ) ;
6666 // type not mapped: fail
6767 await assert . rejects ( endpoints . issue ( require (
6868 './input/credential-type-unmapped-fail.json' ) ) ,
69- { name : 'HTTPError' } ,
69+
7070 'Failed to reject a VC with an unmapped (via `@context`) type.' ) ;
7171 } ) ;
7272 it ( 'If more than one (type) value is provided, the order does not ' +
@@ -92,7 +92,7 @@ describe('Types', function() {
9292 'Failed to accept a VC with additional type.' ) ;
9393 await assert . rejects ( endpoints . issue ( require (
9494 './input/credential-missing-required-type-fail.json' ) ) ,
95- { name : 'HTTPError' } ,
95+
9696 'Failed to reject a VC missing the `VerifiableCredential` type.' ) ;
9797 }
9898 ) ;
@@ -109,7 +109,7 @@ describe('Types', function() {
109109 await assert . rejects (
110110 endpoints . verifyVp ( require (
111111 './input/presentation-missing-required-type-fail.json' ) ) ,
112- { name : 'HTTPError' } ,
112+
113113 'Failed to reject VP missing `VerifiableCredential` type.' ) ;
114114 }
115115 ) ;
@@ -122,7 +122,7 @@ describe('Types', function() {
122122 'Failed to accept a VC with `credentialStatus` with a `type`.' ) ;
123123 await assert . rejects ( endpoints . issue ( require (
124124 './input/credential-status-missing-type-fail.json' ) ) ,
125- { name : 'HTTPError' } ,
125+
126126 'Failed to reject a VC with `credentialStatus` without a `type`.' ) ;
127127 }
128128 ) ;
@@ -135,7 +135,7 @@ describe('Types', function() {
135135 'Failed to accept a VC with `termsOfUse` with a `type`.' ) ;
136136 await assert . rejects ( endpoints . issue ( require (
137137 './input/credential-termsofuse-missing-type-fail.json' ) ) ,
138- { name : 'HTTPError' } ,
138+
139139 'Failed to reject a VC with `termsOfUse` without a `type`.' ) ;
140140 }
141141 ) ;
@@ -148,7 +148,7 @@ describe('Types', function() {
148148 'Failed to accept a VC with `evidence` with a `type`.' ) ;
149149 await assert . rejects ( endpoints . issue ( require (
150150 './input/credential-evidence-missing-type-fail.json' ) ) ,
151- { name : 'HTTPError' } ,
151+
152152 'Failed to reject a VC with `evidence` without a `type`.' ) ;
153153 }
154154 ) ;
@@ -160,7 +160,7 @@ describe('Types', function() {
160160 'Failed to accept a VC with `refreshService` with a `type`.' ) ;
161161 await assert . rejects ( endpoints . issue ( require (
162162 './input/credential-refresh-no-type-fail.json' ) ) ,
163- { name : 'HTTPError' } ,
163+
164164 'Failed to reject a VC with `refreshService` without a `type`.' ) ;
165165 }
166166 ) ;
@@ -172,7 +172,7 @@ describe('Types', function() {
172172 'Failed to accept a VC with `credentialSchema` with a `type`.' ) ;
173173 await assert . rejects ( endpoints . issue ( require (
174174 './input/credential-schema-no-type-fail.json' ) ) ,
175- { name : 'HTTPError' } ,
175+
176176 'Failed to reject `credentialSchema` without a `type`.' ) ;
177177 }
178178 ) ;
0 commit comments