From a247d69b7f9728a41a60fc8c603f32c4443e4fc0 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Fri, 10 May 2019 17:04:15 +0900 Subject: [PATCH] Fix tests. --- index.ts | 2 +- package.json | 2 +- test/unit/Crypto.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.ts b/index.ts index 87e5af61..10c6de82 100644 --- a/index.ts +++ b/index.ts @@ -13,7 +13,7 @@ const repl = require("repl") const BITBOX = require("./lib/BITBOX").BITBOX const clone = require("git-clone") -program.version("7.0.16 ", "-v, --version") +program.version("7.0.17 ", "-v, --version") program .command("new ") diff --git a/package.json b/package.json index e052baca..6d711141 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitbox-sdk", - "version": "7.0.16", + "version": "7.0.17", "description": "BITBOX SDK for Bitcoin Cash", "author": "Gabriel Cardona ", "contributors": [ diff --git a/test/unit/Crypto.js b/test/unit/Crypto.js index ea05e058..2e6218a8 100644 --- a/test/unit/Crypto.js +++ b/test/unit/Crypto.js @@ -15,10 +15,10 @@ describe("#Crypto", () => { assert.equal(sha1Hash, fixture.hash) }) - it(`should create 64 character SHA256Hash hex encoded`, () => { + it(`should create 40 character SHA1 Hash hex encoded`, () => { const data = Buffer.from(fixture.hex, "hex") - const sha256Hash = bitbox.Crypto.sha256(data).toString("hex") - assert.equal(sha256Hash.length, 64) + const sha1Hash = bitbox.Crypto.sha1(data).toString("hex") + assert.equal(sha1Hash.length, 40) }) }) })