diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-11-03 07:35:46 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-11-03 07:35:46 +0800 |
commit | 185396ff08786dc108cabb57d47925032a9e2d74 (patch) | |
tree | e5ff35a7a75835b33519be905efc7934ea824a22 /test | |
parent | ed1917d71a464c5cf12d3dc283fcc30976134db8 (diff) | |
download | tangerine-wallet-browser-185396ff08786dc108cabb57d47925032a9e2d74.tar tangerine-wallet-browser-185396ff08786dc108cabb57d47925032a9e2d74.tar.gz tangerine-wallet-browser-185396ff08786dc108cabb57d47925032a9e2d74.tar.bz2 tangerine-wallet-browser-185396ff08786dc108cabb57d47925032a9e2d74.tar.lz tangerine-wallet-browser-185396ff08786dc108cabb57d47925032a9e2d74.tar.xz tangerine-wallet-browser-185396ff08786dc108cabb57d47925032a9e2d74.tar.zst tangerine-wallet-browser-185396ff08786dc108cabb57d47925032a9e2d74.zip |
Fix dual vault creation bug
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/keyrings/hd-test.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/unit/keyrings/hd-test.js b/test/unit/keyrings/hd-test.js index a2284995a..5d7fbe3db 100644 --- a/test/unit/keyrings/hd-test.js +++ b/test/unit/keyrings/hd-test.js @@ -9,13 +9,24 @@ const sampleMnemonic = 'finish oppose decorate face calm tragic certain desk hou const firstAcct = '1c96099350f13d558464ec79b9be4445aa0ef579' const secondAcct = '1b00aed43a693f3a957f9feb5cc08afa031e37a0' -describe('simple-keyring', function() { +describe('hd-keyring', function() { let keyring beforeEach(function() { keyring = new HdKeyring() }) + describe('constructor', function() { + keyring = new HdKeyring({ + mnemonic: sampleMnemonic, + n: 2, + }) + + const accounts = keyring.getAccounts() + assert.equal(accounts[0], firstAcct) + assert.equal(accounts[1], secondAcct) + }) + describe('Keyring.type()', function() { it('is a class method that returns the type string.', function() { const type = HdKeyring.type() |