Skip to content

Commit

Permalink
Configure default issuerName for JWT tests in test-config.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSAssassin committed Jul 21, 2023
1 parent 5257bf5 commit 24de91e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/11-vc-jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from './helpers.js';
import chai from 'chai';
import {filterByTag} from 'vc-api-test-suite-implementations';
import {issuerNameJWT} from './test-config.js';
import {klona} from 'klona';

const should = chai.should();
Expand Down Expand Up @@ -40,7 +41,7 @@ describe('Verify Credential - JWT', function() {
describe(verifierName, function() {
let validVc;
before(async function() {
const issuer = matchingIssuers.get('SpruceID').issuers.find(
const issuer = matchingIssuers.get(issuerNameJWT).issuers.find(
issuer => issuer.tags.has('JWT'));
validVc = await createInitialVc({issuer});
});
Expand Down
1 change: 1 addition & 0 deletions tests/test-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*/

export const issuerName = process.env.ISSUER_NAME || 'Digital Bazaar';
export const issuerNameJWT = process.env.ISSUER_NAME_JWT || 'SpruceID';

0 comments on commit 24de91e

Please sign in to comment.