Skip to content

Commit

Permalink
Remove web5-js error message from vectors and point to latest test ve…
Browse files Browse the repository at this point in the history
…ctors (#473)

* updates

* fix lint

* updates

* update

* update hash
  • Loading branch information
nitro-neal authored Apr 2, 2024
1 parent 30eae0f commit a263102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/credentials/tests/jwt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,18 +208,14 @@ describe('Jwt', () => {
const vectors = JwtVerifyTestVector.vectors;

for (const vector of vectors) {
const { input, errors, errorMessage } = vector;
const { input, errors } = vector;

if (errors) {
let errorOccurred = false;
try {
await VerifiableCredential.verify({ vcJwt: input });
} catch (e: any) {
errorOccurred = true;
expect(e.message).to.not.be.null;
if(errorMessage && errorMessage['web5-js']) {
expect(e.message).to.include(errorMessage['web5-js']);
}
}
if (!errorOccurred) {
throw new Error('Verification should have failed but didn\'t.');
Expand Down
2 changes: 1 addition & 1 deletion web5-spec

0 comments on commit a263102

Please sign in to comment.