diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-11-12 09:06:37 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-11-12 09:06:37 +0800 |
commit | eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e (patch) | |
tree | 2a9d5784570038bede1217c79231d184b0e74c3e /test/unit/keyrings | |
parent | 4826f7c0a095da8658bfae6a1d7e982cd81ffd3b (diff) | |
download | tangerine-wallet-browser-eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e.tar tangerine-wallet-browser-eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e.tar.gz tangerine-wallet-browser-eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e.tar.bz2 tangerine-wallet-browser-eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e.tar.lz tangerine-wallet-browser-eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e.tar.xz tangerine-wallet-browser-eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e.tar.zst tangerine-wallet-browser-eea3bfb0b3eca94167f6c62bfb5dbe2bbcf9572e.zip |
Rename n variables to numberOfAccounts inside of test suite. Remove idStore tests.
Diffstat (limited to 'test/unit/keyrings')
-rw-r--r-- | test/unit/keyrings/hd-test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/keyrings/hd-test.js b/test/unit/keyrings/hd-test.js index 5d7fbe3db..c22ffc913 100644 --- a/test/unit/keyrings/hd-test.js +++ b/test/unit/keyrings/hd-test.js @@ -19,7 +19,7 @@ describe('hd-keyring', function() { describe('constructor', function() { keyring = new HdKeyring({ mnemonic: sampleMnemonic, - n: 2, + numberOfAccounts: 2, }) const accounts = keyring.getAccounts() @@ -45,7 +45,7 @@ describe('hd-keyring', function() { describe('#serialize empty wallets.', function() { it('serializes a new mnemonic', function() { const output = keyring.serialize() - assert.equal(output.n, 0) + assert.equal(output.numberOfAccounts, 0) assert.equal(output.mnemonic, null) }) }) @@ -54,7 +54,7 @@ describe('hd-keyring', function() { it('serializes what it deserializes', function() { keyring.deserialize({ mnemonic: sampleMnemonic, - n: 1 + numberOfAccounts: 1 }) assert.equal(keyring.wallets.length, 1, 'restores two accounts') keyring.addAccounts(1) |