fix encoding mistake - payload should be buffer-like

This commit is contained in:
Ryan X. Charles 2014-06-26 14:26:58 -07:00
commit c0b95a5879
2 changed files with 6 additions and 2 deletions

View file

@ -121,7 +121,8 @@ describe('Network / WebRTC', function() {
key.regenerateSync();
var copayerId = key.public.toString('hex');
n._sendToOne = function(a1, encPayload, cb) {
n._sendToOne = function(a1, enc, cb) {
var encPayload = JSON.parse(enc.toString());
encPayload.sig.length.should.be.greaterThan(0);
cb();
};