Skip to content

Commit

Permalink
update web5-vc-ssi test to allow setting SSI service's URL via enviro…
Browse files Browse the repository at this point in the history
…nment variable
  • Loading branch information
finn-tbd committed Jul 25, 2023
1 parent a1e429a commit 8e9eb6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web5/tests/web5-vc-ssi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { TestAgent, TestProfileOptions } from './test-utils/test-user-agent.js';

// import jwt from 'jsonwebtoken';

// set environment variable SSI_BASE_URL=http://localhost:8080 for local testing
let SSIBaseURL = process.env.SSI_BASE_URL || 'https://ssi.tbddev.org';

let did: string;
let vcApi: VcApi;
let testAgent;
Expand Down Expand Up @@ -40,7 +43,7 @@ describe('web5.vc.ssi', () => {
expect(result.status.detail).to.equal('Accepted');
expect(result.record).to.exist;

let ssiResponse = await fetch('https://ssi.tbddev.org/v1/credentials/verification',
let ssiResponse = await fetch(SSIBaseURL + '/v1/credentials/verification',
{
method: 'PUT',

Expand Down

0 comments on commit 8e9eb6d

Please sign in to comment.