Skip to content

Commit 29d38ca

Browse files
authored
add link highligt to test algorithm suites (#51)
Signed-off-by: PatStLouis <[email protected]>
1 parent 7d4f1d2 commit 29d38ca

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/20-algorithms.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Algorithm', function() {
3333
'is malformed due to not complying with associated "MUST" ' +
3434
'statements, a MALFORMED_VALUE_ERROR MUST be raised.',
3535
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.';
3737
const credential = require('./validVc.json');
3838

3939
// Create a negative fixture
@@ -69,7 +69,7 @@ describe('Algorithm: Generate Algorithm', function() {
6969
it('The following process, or one generating the exact output, ' +
7070
'MUST be followed when producing a BitstringStatusListCredential.',
7171
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.';
7373
for(statusListCredential of statusListCredentials) {
7474
testSlCredential({slCredential: statusListCredential});
7575
}
@@ -92,15 +92,15 @@ describe('Algorithm: Validate Algorithm', function() {
9292
'MUST be followed when validating a verifiable credential that ' +
9393
'is contained in a BitstringStatusListCredential',
9494
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';
9696
await assert.doesNotReject(endpoints.verify(issuedVc));
9797
// TODO add negative verifier tests
9898
});
9999
it('If the credentialIndex multiplied by the size is a value ' +
100100
'outside of the range of the bitstring, a RANGE_ERROR MUST ' +
101101
'be raised.',
102102
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.';
104104
this.test.cell.skipMessage = 'Missing negative test fixtures.';
105105
this.skip();
106106
});
@@ -112,7 +112,7 @@ describe('Algorithm: Validate Algorithm', function() {
112112
'be timestamp and the value MUST be a valid URL-encoded ' +
113113
'[XMLSCHEMA11-2] dateTimeStamp string value.',
114114
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.';
116116
this.test.cell.skipMessage = 'No feature support.';
117117
this.skip();
118118
});
@@ -121,7 +121,7 @@ describe('Algorithm: Validate Algorithm', function() {
121121
'status list as it existed at the given point in time, or a ' +
122122
'STATUS_RETRIEVAL_ERROR.',
123123
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.';
125125
this.test.cell.skipMessage = 'No feature support.';
126126
this.skip();
127127
});
@@ -147,7 +147,7 @@ describe('Algorithm: Bitstring Generation Algorithm', function() {
147147
it('The following process, or one generating the exact output, ' +
148148
'MUST be followed when generating a status list bitstring.',
149149
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.';
151151
for(statusListCredential of statusListCredentials) {
152152
const credentialSubject =
153153
statusListCredential.credentialSubject;
@@ -173,7 +173,7 @@ describe('Algorithm: Bitstring Expansion Algorithm', function() {
173173
'MUST be followed when expanding a compressed status ' +
174174
'list bitstring.',
175175
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.';
177177
await assert.doesNotReject(endpoints.verify(issuedVc));
178178
// TODO add negative verifier tests
179179
});
@@ -193,7 +193,7 @@ describe('Algorithm: Processing Errors', function() {
193193
'starts with the value https://www.w3.org/ns/credentials/status-list# ' +
194194
'and ends with the value in the section listed below.',
195195
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.';
197197
this.test.cell.skipMessage = 'Missing negative test fixtures.';
198198
this.skip();
199199
await assert.rejects(endpoints.verify({}));

0 commit comments

Comments
 (0)