diff options
author | Frankie <frankie.diamond@gmail.com> | 2016-12-24 04:34:12 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2016-12-24 04:43:42 +0800 |
commit | fde69ea0baf32b5d2a6932b73f4772e983aef552 (patch) | |
tree | d0cc11af3a427e7985ceb03fd9f10e6db4d137ac /test/unit | |
parent | 9e1c90eafcace4ac67100ae0a567faba13f9e618 (diff) | |
download | tangerine-wallet-browser-fde69ea0baf32b5d2a6932b73f4772e983aef552.tar tangerine-wallet-browser-fde69ea0baf32b5d2a6932b73f4772e983aef552.tar.gz tangerine-wallet-browser-fde69ea0baf32b5d2a6932b73f4772e983aef552.tar.bz2 tangerine-wallet-browser-fde69ea0baf32b5d2a6932b73f4772e983aef552.tar.lz tangerine-wallet-browser-fde69ea0baf32b5d2a6932b73f4772e983aef552.tar.xz tangerine-wallet-browser-fde69ea0baf32b5d2a6932b73f4772e983aef552.tar.zst tangerine-wallet-browser-fde69ea0baf32b5d2a6932b73f4772e983aef552.zip |
fix some minor spelling mistakes and clean up code
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/tx-manager-test.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/tx-manager-test.js b/test/unit/tx-manager-test.js index f09068a72..be16facad 100644 --- a/test/unit/tx-manager-test.js +++ b/test/unit/tx-manager-test.js @@ -80,7 +80,7 @@ describe('Transaction Manager', function() { } var result = txManager.getTxList() assert.equal(result.length, limit, `limit of ${limit} txs enforced`) - assert.equal(result[0].id, 0, 'first tx should still be their') + assert.equal(result[0].id, 0, 'first tx should still be there') assert.equal(result[0].status, 'unapproved', 'first tx should be unapproved') assert.equal(result[1].id, 2, 'early txs truncted') }) @@ -168,15 +168,15 @@ describe('Transaction Manager', function() { var foop = 0 var zoop = 0 for (let i = 0; i < 10; ++i ){ - let evryOther = i % 2 + let everyOther = i % 2 txManager.addTx({ id: i, - status: evryOther ? 'unapproved' : 'confirmed', + status: everyOther ? 'unapproved' : 'confirmed', txParams: { - from: evryOther ? 'foop' : 'zoop', - to: evryOther ? 'zoop' : 'foop', + from: everyOther ? 'foop' : 'zoop', + to: everyOther ? 'zoop' : 'foop', } }, onTxDoneCb) - evryOther ? ++foop : ++zoop + everyOther ? ++foop : ++zoop } assert.equal(txManager.getFilteredTxList({status: 'confirmed', from: 'zoop'}).length, zoop) assert.equal(txManager.getFilteredTxList({status: 'confirmed', to: 'foop'}).length, zoop) |