Skip to content

Simplify getting issuer with new filterByTag method. #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"klona": "^2.0.5",
"mocha": "^10.0.0",
"uuid": "^8.3.2",
"vc-api-test-suite-implementations": "github:w3c-ccg/vc-api-test-suite-implementations"
"vc-api-test-suite-implementations": "github:w3c-ccg/vc-api-test-suite-implementations#filterByTag-returns-respective-endpoint"
},
"devDependencies": {
"eslint": "^8.19.0",
Expand Down
5 changes: 2 additions & 3 deletions tests/10-issuer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ describe('Issue Credential - Data Integrity', function() {
this.columnLabel = 'Issuer';
// the reportData will be displayed under the test title
this.reportData = reportData;
for(const [name, implementation] of match) {
const issuer = implementation.issuers.find(
issuer => issuer.tags.has('VC-API'));
for(const [name, {endpoints}] of match) {
const [issuer] = endpoints;
describe(name, function() {
it('MUST successfully issue a credential.', async function() {
this.test.cell = {
Expand Down
5 changes: 2 additions & 3 deletions tests/11-issuer-jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ describe('Issue Credential - JWT', function() {
this.columnLabel = 'Issuer';
// the reportData will be displayed under the test title
this.reportData = reportData;
for(const [name, implementation] of match) {
const issuer = implementation.issuers.find(issuer =>
issuer.tags.has('VC-API') && issuer.tags.has('JWT'));
for(const [name, {endpoints}] of match) {
const [issuer] = endpoints;
describe(name, function() {
it('MUST successfully issue a credential.', async function() {
this.test.cell = {
Expand Down