Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cardona committed May 10, 2019
1 parent b28252e commit a247d69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <name>")
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitbox-sdk",
"version": "7.0.16",
"version": "7.0.17",
"description": "BITBOX SDK for Bitcoin Cash",
"author": "Gabriel Cardona <[email protected]>",
"contributors": [
Expand Down
6 changes: 3 additions & 3 deletions test/unit/Crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})
})
Expand Down

0 comments on commit a247d69

Please sign in to comment.