removed duplicate test
This commit is contained in:
parent
57111936e7
commit
bd98514832
8
test.js
8
test.js
|
@ -217,14 +217,6 @@ describe("ECIES", function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should encrypt and decrypt", function() {
|
|
||||||
return eccrypto.encrypt(publicKeyA, Buffer.from("to a")).then(function(enc) {
|
|
||||||
return eccrypto.decrypt(privateKeyA, enc);
|
|
||||||
}).then(function(msg) {
|
|
||||||
expect(msg.toString()).to.equal("to a");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
it("should encrypt and decrypt with message size > 15", function() {
|
it("should encrypt and decrypt with message size > 15", function() {
|
||||||
return eccrypto.encrypt(publicKeyA, Buffer.from("message size that is greater than 15 for sure =)")).then(function(enc) {
|
return eccrypto.encrypt(publicKeyA, Buffer.from("message size that is greater than 15 for sure =)")).then(function(enc) {
|
||||||
return eccrypto.decrypt(privateKeyA, enc);
|
return eccrypto.decrypt(privateKeyA, enc);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user