Skip to content

Commit 16279b3

Browse files
committed
Add basic matrix and row info to rdfc2019 algorithms.
1 parent 3d046e2 commit 16279b3

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

tests/suites/algorithms.js

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,31 @@ export function algorithmSuite({
2323
}
2424

2525
export function ecdsaRdfc2019Algorithms({
26+
endpoints,
2627
suiteName,
28+
keyType,
2729
vcVersion
2830
}) {
2931
return describe(`${suiteName} - Algorithms - VC ${vcVersion}`, function() {
30-
it('The transformation options MUST contain a type identifier for the ' +
31-
'cryptographic suite (type) and a cryptosuite identifier (cryptosuite).',
32-
async function() {
33-
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#transformation-ecdsa-rdfc-2019';
34-
});
32+
this.matrix = true;
33+
this.report = true;
34+
this.implemented = [...endpoints];
35+
this.rowLabel = 'Test Name';
36+
this.columnLabel = 'Implementation';
37+
for(const [name, {endpoints: issuers}] of endpoints) {
38+
describe(`${name}: ${keyType}`, function() {
39+
beforeEach(function() {
40+
this.currentTest.cell = {
41+
rowId: this.currentTest.title,
42+
columnId: this.currentTest.parent.title
43+
};
44+
});
45+
it('The transformation options MUST contain a type identifier for ' +
46+
'the cryptographic suite (type) and a cryptosuite identifier ' +
47+
'(cryptosuite).', async function() {
48+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#transformation-ecdsa-rdfc-2019';
49+
});
50+
});
51+
}
3552
});
3653
}

0 commit comments

Comments
 (0)