Skip to content

Commit

Permalink
unit test fix and upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jleni committed Oct 27, 2019
1 parent ad30742 commit f603ecc
Show file tree
Hide file tree
Showing 3 changed files with 724 additions and 868 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"homepage": "https://github.com/zondax/ledger-cosmos-js",
"dependencies": {
"@babel/runtime": "^7.6.3",
"@ledgerhq/hw-transport": "^4.73.2",
"@ledgerhq/hw-transport": "^4.73.3",
"bech32": "^1.1.3",
"ripemd160": "^2.0.2"
},
Expand All @@ -31,24 +31,24 @@
"@babel/node": "^7.6.3",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@ledgerhq/hw-transport-node-hid": "^4.73.2",
"@ledgerhq/hw-transport-u2f": "^4.73.2",
"@ledgerhq/hw-transport-webusb": "^4.73.2",
"@ledgerhq/hw-transport-node-hid": "^4.73.3",
"@ledgerhq/hw-transport-u2f": "^4.73.3",
"@ledgerhq/hw-transport-webusb": "^4.73.3",
"@ledgerhq/logs": "^4.72.0",
"@vue/cli-plugin-babel": "^3.12.0",
"@vue/cli-plugin-eslint": "^3.12.0",
"@vue/cli-service": "^3.12.0",
"@vue/cli-plugin-babel": "^4.0.5",
"@vue/cli-plugin-eslint": "^4.0.5",
"@vue/cli-service": "^4.0.5",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"bip32": "2.0.4",
"bip39": "3.0.2",
"core-js": "^3.3.2",
"core-js": "^3.3.4",
"crypto-js": "3.1.9-1",
"eslint": "^6.5.1",
"eslint": "^6.6.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.4.0",
"eslint-config-prettier": "^6.5.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.19.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.2.3",
"index.js": "^0.0.3",
Expand Down
7 changes: 3 additions & 4 deletions tests/basic.spec.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { getBech32FromPK } from "index.js";
import CosmosApp from "index.js";

test("check address conversion", async () => {
const pkStr =
"034fef9cd7c4c63588d3b03feb5281b9d232cba34d6f3d71aee59211ffbfe1fe87";
const pkStr = "034fef9cd7c4c63588d3b03feb5281b9d232cba34d6f3d71aee59211ffbfe1fe87";
const pk = Buffer.from(pkStr, "hex");
const addr = getBech32FromPK("cosmos", pk);
const addr = CosmosApp.getBech32FromPK("cosmos", pk);
expect(addr).toEqual("cosmos1w34k53py5v5xyluazqpq65agyajavep2rflq6h");
});
Loading

0 comments on commit f603ecc

Please sign in to comment.