add tests

This commit is contained in:
Manuel Araoz 2014-06-16 17:40:59 -03:00
commit 4b81bc1fdb
3 changed files with 32 additions and 0 deletions

View file

@ -3,6 +3,7 @@ var FakeWallet = function(){
this.balance=10000;
this.safeBalance=1000;
this.balanceByAddr={'1CjPR7Z5ZSyWk6WtXvSFgkptmpoi4UM9BC': 1000};
this.name = 'myTESTwullet';
};
FakeWallet.prototype.set = function(balance, safeBalance, balanceByAddr){
@ -28,6 +29,11 @@ FakeWallet.prototype.getBalance=function(cb){
return cb(null, this.balance, this.balanceByAddr, this.safeBalance);
};
FakeWallet.prototype.toEncryptedObj = function() {
return 'SUPERENCRYPTEDSICRITSTUFF';
};
// This mock is meant for karma, module.exports is not necesary.
try {
module.exports = require('soop')(FakeWallet);