From 54310900a2b4cafd0b4d4a8cab281b23d1ead379 Mon Sep 17 00:00:00 2001 From: ayman Date: Tue, 25 Jun 2024 13:36:17 +0530 Subject: [PATCH] fix: tests --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index b71a72e..df69b17 100644 --- a/test/index.js +++ b/test/index.js @@ -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) }) }) @@ -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)) }) })