diff --git a/tests/11-vc-jwt.js b/tests/11-vc-jwt.js index fd86da7..03f6a37 100644 --- a/tests/11-vc-jwt.js +++ b/tests/11-vc-jwt.js @@ -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(); @@ -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}); }); diff --git a/tests/test-config.js b/tests/test-config.js index fd1d0d9..faf8c3b 100644 --- a/tests/test-config.js +++ b/tests/test-config.js @@ -3,3 +3,4 @@ */ export const issuerName = process.env.ISSUER_NAME || 'Digital Bazaar'; +export const issuerNameJWT = process.env.ISSUER_NAME_JWT || 'SpruceID';