Skip to content

Commit

Permalink
Updated error msg in index.spec.ts .getPrivateKey() test to match wit…
Browse files Browse the repository at this point in the history
…h new msg from updated secp2561 v4 library
  • Loading branch information
holgerd77 committed May 9, 2020
1 parent 6fb2936 commit 81ac212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('.getPrivateKey()', function() {
it('should fail', function() {
assert.throws(function() {
Wallet.fromPrivateKey(Buffer.from('001122', 'hex'))
}, /^Error: Private key does not satisfy the curve requirements \(ie. it is invalid\)$/)
}, /^Error: Expected private key to be an Uint8Array with length 32$/)
})
})

Expand Down

0 comments on commit 81ac212

Please sign in to comment.