add tests
This commit is contained in:
parent
f1257d054c
commit
6b7b00769d
2 changed files with 69 additions and 60 deletions
|
|
@ -147,11 +147,13 @@ describe('PublicKeyRing model', function() {
|
|||
for (var i = 0; i < 2; i++)
|
||||
w.generateAddress(isChange);
|
||||
|
||||
var as = w.getAddresses();
|
||||
var as = w.getAddressesInfo();
|
||||
as.length.should.equal(4);
|
||||
for (var j in as) {
|
||||
var a = as[j];
|
||||
a.isValid().should.equal(true);
|
||||
a.address.isValid().should.equal(true);
|
||||
a.addressStr.should.equal(a.address.toString());
|
||||
a.isChange.should.equal([false, false, true, true][j]);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue