@@ -33,7 +33,7 @@ describe('Algorithm', function() {
33
33
'is malformed due to not complying with associated "MUST" ' +
34
34
'statements, a MALFORMED_VALUE_ERROR MUST be raised.' ,
35
35
async function ( ) {
36
- this . test . link = '' ;
36
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=If%20an%20implementation%20of%20any%20of%20the%20algorithms%20in%20this%20section%20processes%20a%20property%20defined%20in%20Section%202.%20Data%20Model%20whose%20value%20is%20malformed%20due%20to%20not%20complying%20with%20associated%20%22MUST%22%20statements%2C%20a%20MALFORMED_VALUE_ERROR%20MUST%20be%20raised. ' ;
37
37
const credential = require ( './validVc.json' ) ;
38
38
39
39
// Create a negative fixture
@@ -69,7 +69,7 @@ describe('Algorithm: Generate Algorithm', function() {
69
69
it ( 'The following process, or one generating the exact output, ' +
70
70
'MUST be followed when producing a BitstringStatusListCredential.' ,
71
71
async function ( ) {
72
- this . test . link = '' ;
72
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=The%20following%20process%2C%20or%20one%20generating%20the%20exact%20output%2C%20MUST%20be%20followed%20when%20producing%20a%20BitstringStatusListCredential. ' ;
73
73
for ( statusListCredential of statusListCredentials ) {
74
74
testSlCredential ( { slCredential : statusListCredential } ) ;
75
75
}
@@ -92,15 +92,15 @@ describe('Algorithm: Validate Algorithm', function() {
92
92
'MUST be followed when validating a verifiable credential that ' +
93
93
'is contained in a BitstringStatusListCredential' ,
94
94
async function ( ) {
95
- this . test . link = '' ;
95
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=The%20following%20process%2C%20or%20one%20generating%20the%20exact%20output%2C%20MUST%20be%20followed%20when%20validating%20a%20verifiable%20credential%20that%20is%20contained%20in%20a%20BitstringStatusListCredential ' ;
96
96
await assert . doesNotReject ( endpoints . verify ( issuedVc ) ) ;
97
97
// TODO add negative verifier tests
98
98
} ) ;
99
99
it ( 'If the credentialIndex multiplied by the size is a value ' +
100
100
'outside of the range of the bitstring, a RANGE_ERROR MUST ' +
101
101
'be raised.' ,
102
102
async function ( ) {
103
- this . test . link = '' ;
103
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=Let%20status%20be%20the%20value%20in%20the%20bitstring%20at%20the%20position%20indicated%20by%20the%20credentialIndex%20multiplied%20by%20the%20size.%20If%20the%20credentialIndex%20multiplied%20by%20the%20size%20is%20a%20value%20outside%20of%20the%20range%20of%20the%20bitstring%2C%20a%20RANGE_ERROR%20MUST%20be%20raised. ' ;
104
104
this . test . cell . skipMessage = 'Missing negative test fixtures.' ;
105
105
this . skip ( ) ;
106
106
} ) ;
@@ -112,7 +112,7 @@ describe('Algorithm: Validate Algorithm', function() {
112
112
'be timestamp and the value MUST be a valid URL-encoded ' +
113
113
'[XMLSCHEMA11-2] dateTimeStamp string value.' ,
114
114
async function ( ) {
115
- this . test . link = '' ;
115
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=If%20such%20a%20feature%20is%20supported%2C%20and%20if%20query%20parameters%20are%20supported%20by%20the%20URL%20scheme%2C%20then%20the%20name%20of%20the%20query%20parameter%20MUST%20be%20timestamp%20and%20the%20value%20MUST%20be%20a%20valid%20URL%2Dencoded%20%5BXMLSCHEMA11%2D2%5D%20dateTimeStamp%20string%20value. ' ;
116
116
this . test . cell . skipMessage = 'No feature support.' ;
117
117
this . skip ( ) ;
118
118
} ) ;
@@ -121,7 +121,7 @@ describe('Algorithm: Validate Algorithm', function() {
121
121
'status list as it existed at the given point in time, or a ' +
122
122
'STATUS_RETRIEVAL_ERROR.' ,
123
123
async function ( ) {
124
- this . test . link = '' ;
124
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=The%20result%20of%20dereferencing%20such%20a%20timestamp%2Dparameterized%20URL%20MUST%20be%20either%20a%20status%20list%20credential%20containing%20the%20status%20list%20as%20it%20existed%20at%20the%20given%20point%20in%20time%2C%20or%20a%20STATUS_RETRIEVAL_ERROR. ' ;
125
125
this . test . cell . skipMessage = 'No feature support.' ;
126
126
this . skip ( ) ;
127
127
} ) ;
@@ -147,7 +147,7 @@ describe('Algorithm: Bitstring Generation Algorithm', function() {
147
147
it ( 'The following process, or one generating the exact output, ' +
148
148
'MUST be followed when generating a status list bitstring.' ,
149
149
async function ( ) {
150
- this . test . link = '' ;
150
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=The%20following%20process%2C%20or%20one%20generating%20the%20exact%20output%2C%20MUST%20be%20followed%20when%20generating%20a%20status%20list%20bitstring. ' ;
151
151
for ( statusListCredential of statusListCredentials ) {
152
152
const credentialSubject =
153
153
statusListCredential . credentialSubject ;
@@ -173,7 +173,7 @@ describe('Algorithm: Bitstring Expansion Algorithm', function() {
173
173
'MUST be followed when expanding a compressed status ' +
174
174
'list bitstring.' ,
175
175
async function ( ) {
176
- this . test . link = '' ;
176
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=The%20following%20process%2C%20or%20one%20generating%20the%20exact%20output%2C%20MUST%20be%20followed%20when%20expanding%20a%20compressed%20status%20list%20bitstring. ' ;
177
177
await assert . doesNotReject ( endpoints . verify ( issuedVc ) ) ;
178
178
// TODO add negative verifier tests
179
179
} ) ;
@@ -193,7 +193,7 @@ describe('Algorithm: Processing Errors', function() {
193
193
'starts with the value https://www.w3.org/ns/credentials/status-list# ' +
194
194
'and ends with the value in the section listed below.' ,
195
195
async function ( ) {
196
- this . test . link = '' ;
196
+ this . test . link = 'https://www.w3.org/TR/vc-bitstring-status-list/#:~:text=The%20type%20value%20of%20the%20error%20object%20MUST%20be%20a%20URL%20that%20starts%20with%20the%20value%20https%3A//www.w3.org/ns/credentials/status%2Dlist%23%20and%20ends%20with%20the%20value%20in%20the%20section%20listed%20below. ' ;
197
197
this . test . cell . skipMessage = 'Missing negative test fixtures.' ;
198
198
this . skip ( ) ;
199
199
await assert . rejects ( endpoints . verify ( { } ) ) ;
0 commit comments