Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Nov 1, 2024
1 parent ef94903 commit d4cb1e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ describe("ECDSA", function () {
});
});

it.skip("should reject promise on invalid key when verifying", function (done) {
it("should reject promise on invalid key when verifying", function (done) {
eccrypto
.sign(privateKey, msg)
.then(function (sig) {
eccrypto.verify(Buffer.from("test"), msg, sig).catch(function () {
const badKey = Buffer.alloc(65);
publicKey.copy(badKey);
const badKey = new Uint8Array(65);
badKey.set(publicKey);
badKey[0] ^= 1;
eccrypto.verify(badKey, msg, sig).catch(function () {
done();
Expand Down

0 comments on commit d4cb1e4

Please sign in to comment.