Merge pull request #242 from ryanxcharles/feature/privatekey-isvalid

add test for .isValid() function
This commit is contained in:
Ryan X. Charles 2014-04-10 12:36:25 -03:00
commit 9395781997

View File

@ -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);
});
});
});