Comparing version 0.5.0 to 0.6.0
@@ -47,3 +47,3 @@ 'use strict'; | ||
cb(null, msg); | ||
cb(null, msg, error); | ||
}); | ||
@@ -50,0 +50,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "GPG encryption and decryption in node.js by way of the gpg command-line tool", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -128,2 +128,11 @@ var assert = require('assert'); | ||
it('should provide stderr output for successful calls', function(done) { | ||
gpg.decrypt(encryptedString, function(err, decrypted, stderr){ | ||
assert.ifError(err); | ||
assert.ok(/ID C343C0BC/.test(stderr)); // key information is sent to stderr by gpg | ||
assert.equal(decrypted.toString('utf8'), 'Hello World'); | ||
done(); | ||
}); | ||
}); | ||
it('should decrypt Buffers', function(done){ | ||
@@ -130,0 +139,0 @@ var encryptedBuffer = new Buffer(encryptedString); |
30282
614