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:
commit
a5544d08db
8 changed files with 25 additions and 9 deletions
|
|
@ -46,6 +46,10 @@ FakeWallet.prototype.getAddressesInfo = function() {
|
|||
return ret;
|
||||
};
|
||||
|
||||
FakeWallet.prototype.isShared = function() {
|
||||
return this.totalCopayers > 1;
|
||||
}
|
||||
|
||||
FakeWallet.prototype.isReady = function() {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue