add tests
This commit is contained in:
parent
eeb621b601
commit
4b81bc1fdb
3 changed files with 32 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue