ECKey: ensure throw is from ECKey
This commit is contained in:
parent
baec325e6f
commit
77ed66b24d
1 changed files with 3 additions and 1 deletions
|
@ -31,8 +31,10 @@ describe('ECKey', function() {
|
|||
|
||||
fixtures.invalid.constructor.forEach(function(f) {
|
||||
it('throws on ' + f.D, function() {
|
||||
var D = new BigInteger(f.D)
|
||||
|
||||
assert.throws(function() {
|
||||
new ECKey(new BigInteger(f.D))
|
||||
new ECKey(D)
|
||||
}, new RegExp(f.exception))
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue