Skip to content

Commit

Permalink
Use shared assertion shouldBeUrl.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Jul 3, 2024
1 parent 41971d0 commit 5257a02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/suites/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import {createInitialVc, getBs58Bytes, supportsVc} from '../helpers.js';
import chai from 'chai';
import {documentLoader} from '../documentLoader.js';
import {shouldBeUrl} from 'data-integrity-test-suite-assertion';

const should = chai.should();

Expand Down Expand Up @@ -153,7 +154,10 @@ export function createSuite({
function() {
this.test.link = 'https://w3c.github.io/vc-di-bbs/#:~:text=The%20verificationMethod%20property%20of%20the%20proof%20MUST%20be%20a%20URL';
for(const proof of bbsProofs) {

shouldBeUrl({
url: proof.verificationMethod,
prop: 'proof.verificationMethod'
});
}
});
it('Dereferencing "verificationMethod" MUST result in an object ' +
Expand Down

0 comments on commit 5257a02

Please sign in to comment.