diff options
author | kumavis <aaron@kumavis.me> | 2017-09-28 03:33:46 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-09-28 03:33:46 +0800 |
commit | b41aad6d1ae894ab89380b1c7159da8545ad935b (patch) | |
tree | 2a0468812d3ede295489277183909a4059a77bd3 | |
parent | 89e690fc794a7cf0af541dbb0c1fd58d73bac368 (diff) | |
download | tangerine-wallet-browser-b41aad6d1ae894ab89380b1c7159da8545ad935b.tar.gz tangerine-wallet-browser-b41aad6d1ae894ab89380b1c7159da8545ad935b.tar.zst tangerine-wallet-browser-b41aad6d1ae894ab89380b1c7159da8545ad935b.zip |
style - small whitespace nitpick
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js | 2 | ||||
-rw-r--r-- | test/unit/pending-tx-test.js | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/lib/pending-tx-tracker.js b/app/scripts/lib/pending-tx-tracker.js index 44e9d50fa..8da1253a2 100644 --- a/app/scripts/lib/pending-tx-tracker.js +++ b/app/scripts/lib/pending-tx-tracker.js @@ -55,7 +55,7 @@ module.exports = class PendingTransactionTracker extends EventEmitter { }) } - queryPendingTxs ({oldBlock, newBlock}) { + queryPendingTxs ({ oldBlock, newBlock }) { // check pending transactions on start if (!oldBlock) { this._checkPendingTxs() diff --git a/test/unit/pending-tx-test.js b/test/unit/pending-tx-test.js index 8c6d287f8..7937afa46 100644 --- a/test/unit/pending-tx-test.js +++ b/test/unit/pending-tx-test.js @@ -84,14 +84,14 @@ describe('PendingTransactionTracker', function () { let newBlock, oldBlock newBlock = { number: '0x01' } pendingTxTracker._checkPendingTxs = done - pendingTxTracker.queryPendingTxs({oldBlock, newBlock}) + pendingTxTracker.queryPendingTxs({ oldBlock, newBlock }) }) it('should call #_checkPendingTxs if oldBlock and the newBlock have a diff of greater then 1', function (done) { let newBlock, oldBlock oldBlock = { number: '0x01' } newBlock = { number: '0x03' } pendingTxTracker._checkPendingTxs = done - pendingTxTracker.queryPendingTxs({oldBlock, newBlock}) + pendingTxTracker.queryPendingTxs({ oldBlock, newBlock }) }) it('should not call #_checkPendingTxs if oldBlock and the newBlock have a diff of 1 or less', function (done) { let newBlock, oldBlock @@ -101,7 +101,7 @@ describe('PendingTransactionTracker', function () { const err = new Error('should not call #_checkPendingTxs if oldBlock and the newBlock have a diff of 1 or less') done(err) } - pendingTxTracker.queryPendingTxs({oldBlock, newBlock}) + pendingTxTracker.queryPendingTxs({ oldBlock, newBlock }) done() }) }) |