mirror of https://github.com/BTCPrivate/copay.git
remove soop from tests
This commit is contained in:
parent
3081f1ef9a
commit
5b558e18fb
|
@ -1,6 +1,4 @@
|
||||||
|
var is_browser = typeof process == 'undefined' || typeof process.versions === 'undefined';
|
||||||
var is_browser = typeof process == 'undefined'
|
|
||||||
|| typeof process.versions === 'undefined';
|
|
||||||
if (is_browser) {
|
if (is_browser) {
|
||||||
var copay = require('copay'); //browser
|
var copay = require('copay'); //browser
|
||||||
} else {
|
} else {
|
||||||
|
@ -27,7 +25,11 @@ var FakeWallet = function() {
|
||||||
createdTs: 1403102115,
|
createdTs: 1403102115,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.publicKeyRing = {isComplete: function(){ return true; }};
|
this.publicKeyRing = {
|
||||||
|
isComplete: function() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) {
|
FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) {
|
||||||
|
@ -96,7 +98,5 @@ FakeWallet.prototype.disconnect = function() {
|
||||||
this.disconnectCalled = 1;
|
this.disconnectCalled = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
// This mock is meant for karma, module.exports is not necesary.
|
// TODO a try catch was here
|
||||||
try {
|
module.exports = FakeWallet;
|
||||||
module.exports = require('soop')(FakeWallet);
|
|
||||||
} catch (e) {}
|
|
||||||
|
|
Loading…
Reference in New Issue