Browse Source

stylistic change and unnecessary test code removal

patch-2
Brandon Roberts 10 years ago
parent
commit
3518843f98
  1. 12
      test/privatekey.js

12
test/privatekey.js

@ -141,18 +141,8 @@ describe('PrivateKey', function() {
});
it('should not be able to instantiate private key WIF because of network mismatch', function() {
var invalidNet = {
name: 'invalidnet',
alias: 'invalidnet',
pubkeyhash: 0xFF,
privatekey: 0xFF,
scripthash: 0xFF,
xpubkey: 0xFFFFFFFF,
xprivkey: 0xFFFFFFFF,
networkMagic: 0xFFFFFFFF
};
expect(function(){
var a = new PrivateKey( wifNamecoin, invalidNet );
var a = new PrivateKey(wifNamecoin, 'testnet');
}).to.throw('Invalid network');
});

Loading…
Cancel
Save