diff --git a/test.js b/test.js index 7ff2c24..d6ffce8 100644 --- a/test.js +++ b/test.js @@ -15,7 +15,7 @@ describe("Key convertion", function() { }); it("should throw on invalid private key", function() { - expect(eccrypto.getPublic.bind(null, Buffer("test"))).to.throw(Error); + expect(eccrypto.getPublic.bind(null, Buffer("00", "hex"))).to.throw(Error); }); });