Skip to content

Commit

Permalink
chore(test): update error message in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceanis committed Jan 15, 2025
1 parent 3b90fea commit 14a17d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@
},
"eslintIgnore": [
"*.test.ts"
]
],
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion src/__tests__/VerifierAlgorithm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ describe('ES256K', () => {
const jwt = (await createJWT({ bla: 'bla' }, { issuer: did, signer })) + 'aa'
const parts = jwt.match(/^([a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+)\.([a-zA-Z0-9_-]+)$/)
return expect(() => verifier(parts!![1], parts!![2], [ecKey1])).toThrowError(
new Error('compactSignature expected 64 bytes, got 66')
new Error('compactSignature of length 64 expected, got 66')
)
})

Expand Down

0 comments on commit 14a17d5

Please sign in to comment.