ECKey: fix exception tests

These weren't broken as such, but they weren't distinctly checking that
the right exception was thrown either.
This commit is contained in:
Daniel Cousens 2014-05-29 16:00:27 +10:00
parent 6cfa729dae
commit 7494a146a6
3 changed files with 19 additions and 19 deletions

View file

@ -27,7 +27,7 @@ ECKey.fromWIF = function(string) {
var compressed = false
if (payload.length === 33) {
assert.strictEqual(payload[32], 0x01, 'Invalid WIF string')
assert.strictEqual(payload[32], 0x01, 'Invalid compression flag')
payload = payload.slice(0, -1)
compressed = true