Skip to content

Commit f12c324

Browse files
committed
Account for no issuer in sd algorithms.
1 parent 6be708b commit f12c324

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/suites/algorithms-sd.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import {expect} from 'chai';
1414
import {sdVerifySetup} from '../setup.js';
1515

1616
export function sd2023Algorithms({
17-
credentials,
17+
credential,
18+
mandatoryPointers,
19+
selectivePointers,
1820
verifiers,
1921
issuers,
2022
keyTypes,
@@ -33,12 +35,14 @@ export function sd2023Algorithms({
3335
fixtures = await setup({
3436
suite: suiteName,
3537
keyTypes,
36-
credentials
38+
credential,
39+
mandatoryPointers,
40+
selectivePointers
3741
});
3842
});
3943
for(const [name, {endpoints}] of verifiers) {
4044
const [verifier] = endpoints;
41-
const [issuer] = issuers.get(name)?.endpoints;
45+
const [issuer] = (issuers.get(name)?.endpoints || []);
4246
for(const keyType of keyTypes) {
4347
this.implemented.push(`${name}: ${keyType}`);
4448
describe(`${name}: ${keyType}`, function() {

0 commit comments

Comments
 (0)