mirror of https://github.com/BTCPrivate/copay.git
fix test after rebase 2
This commit is contained in:
parent
0d22524885
commit
e00997bad8
|
@ -45,6 +45,7 @@ Network.prototype.cleanUp = function() {
|
|||
this.copayerForPeer = {};
|
||||
this.connections = {};
|
||||
this.criticalErr = '';
|
||||
this.removeAllListeners();
|
||||
if (this.socket) {
|
||||
this.socket.disconnect();
|
||||
this.socket = null;
|
||||
|
|
|
@ -9,6 +9,7 @@ try {
|
|||
} catch (e) {
|
||||
var copay = require('../copay'); //node
|
||||
}
|
||||
var Buffer = bitcore.Buffer;
|
||||
var Insight = copay.Insight || require('../js/models/blockchain/Insight');
|
||||
|
||||
var ID = '933bf321393459b7';
|
||||
|
|
|
@ -17,6 +17,7 @@ describe('Network / Async', function() {
|
|||
var fakeSocket = {};
|
||||
fakeSocket.emit = function() {};
|
||||
fakeSocket.on = function() {};
|
||||
fakeSocket.disconnect = function() {};
|
||||
n.createSocket = function() {
|
||||
return fakeSocket;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue