- expect(address).toBe(params.firstAddress);
- done();
- });
- } else {
- getFirstPublicKey(function(pubkey) {
- expect(pubkey).toBe(params.firstPubKey);
- done();
+ getFirstPublicKey(function(pubkey) {
+ getFirstPrivateKey(function(privkey) {
+ if ("firstAddress" in params) {
+ expect(address).toBe(params.firstAddress);
+ }
+ if ("firstPubKey" in params) {
+ expect(pubkey).toBe(params.firstPubKey);
+ }
+ if ("firstPrivKey" in params) {
+ expect(privkey).toBe(params.firstPrivKey);
+ }
+ done();
+ });
+ });