Skip to content

Commit

Permalink
Update 10-vc-di.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStLouis authored and BigBlueHat committed Dec 2, 2024
1 parent 6df22b8 commit 179406a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/10-vc-di.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ describe('Verify Credential - Data Integrity', function() {
testBadRequestError({result, error});
}
});
it('MUST not verify if "@context" items are not strings.',
it('MUST not verify if "@context" items are not strings or objects.',
async function() {
this.test.cell = {
columnId: verifierName,
rowId: this.test.title
};
const copyVc = klona(validVc);
const invalidContextItemTypes = [[], {}, null, undefined, 10, true];
const invalidContextItemTypes = [[], null, undefined, 10, true];
for(const invalidContextItemType of invalidContextItemTypes) {
copyVc['@context'] = [invalidContextItemType];
const body = createRequestBody({vc: copyVc});
Expand Down

0 comments on commit 179406a

Please sign in to comment.