Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nesopie committed Jun 25, 2024
1 parent f3a7fc2 commit 5431090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ valid.forEach(function (f) {
t.plan(1)

const privateKey = fromHex(f.privateKeyHex)
const actual = encode(f.version, privateKey, f.compressed)
const actual = encode({version: f.version, privateKey, compressed: f.compressed})
t.equal(actual, f.WIF)
})
})
Expand All @@ -30,7 +30,7 @@ invalid.encode.forEach(function (f) {
tape('throws ' + f.exception + ' for ' + f.privateKeyHex, function (t) {
t.plan(1)
t.throws(function () {
encode(f.version, fromHex(f.privateKeyHex))
encode({version: f.version, privateKey: fromHex(f.privateKeyHex)})
}, new RegExp(f.exception))
})
})
Expand Down

0 comments on commit 5431090

Please sign in to comment.