Skip to content

Commit 89fc2a3

Browse files
committed
Add matrix code to common & push name to implemented.
1 parent 45ef25e commit 89fc2a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/suites/algorithms.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ export function commonAlgorithms({
2323
}) {
2424
const title = `${suiteName} - Algorithms Common - VC ${vcVersion}`;
2525
return describe(title, function() {
26+
this.matrix = true;
27+
this.report = true;
28+
this.implemented = [];
29+
this.rowLabel = 'Test Name';
30+
this.columnLabel = 'Implementation';
2631
const credentials = new Map(keyTypes.map(keyType => [keyType, null]));
2732
before(async function() {
2833
for(const keyType of keyTypes) {
@@ -39,6 +44,7 @@ export function commonAlgorithms({
3944
});
4045
for(const [name, {endpoints}] of verifiers) {
4146
const [verifier] = endpoints;
47+
this.implemented.push(`${name}`);
4248
describe(`${name}`, function() {
4349
beforeEach(function() {
4450
this.currentTest.cell = {
@@ -345,6 +351,7 @@ function invalidHashProxy({
345351
cryptosuite, document, proof,
346352
documentLoader, dataIntegrityProof
347353
} = {}) {
354+
// this switch the hash to the wrong hash for that keyType
348355
const algorithm = (keyType === 'P-256') ? 'sha384' : 'sha256';
349356
const c14nOptions = {
350357
documentLoader,

0 commit comments

Comments
 (0)