Browse Source

add test for .isValid() function

patch-2
Ryan X. Charles 11 years ago
parent
commit
c5cd242d15
  1. 7
      test/test.PrivateKey.js

7
test/test.PrivateKey.js

@ -48,5 +48,12 @@ describe('PrivateKey', function() {
var a = new PrivateKey('5JZsbYcnYN8Dz2YeSLZr6aswrVevedMUSFWxpie6SPpYRb2E4Gi');
a.network().name.should.equal('livenet');
});
describe('#isValid', function() {
it('should detect this private key as valid', function() {
var privKey = new PrivateKey('5JQkUX6RNQC91xv4Www6Cgbxb6Eri6WBJjtPGqwfXVKBzT37cAf');
privKey.isValid().should.equal(true);
});
});
});

Loading…
Cancel
Save