Merge pull request #1040 from yemel/feature/improve-1-of-1

Remove Name field and copayer list on 1-of-1 wallets
This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-05 10:29:46 -03:00
commit a5544d08db
8 changed files with 25 additions and 9 deletions

View file

@ -46,6 +46,10 @@ FakeWallet.prototype.getAddressesInfo = function() {
return ret;
};
FakeWallet.prototype.isShared = function() {
return this.totalCopayers > 1;
}
FakeWallet.prototype.isReady = function() {
return true;
}

View file

@ -363,6 +363,14 @@ describe('Wallet model', function() {
}, w.reconnectDelay * callCount * (callCount + 1) / 2);
});
it('#isSingleUser', function() {
var w = createW();
w.isShared().should.equal(true);
w.totalCopayers = 1;
w.isShared().should.equal(false);
});
it('#isReady', function() {
var w = createW();
w.publicKeyRing.isComplete().should.equal(false);