diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-11-16 05:33:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-16 05:33:47 +0800 |
commit | b944a63ff89e3c45f7d7e49b2d93a5442cde4462 (patch) | |
tree | bcd8ce2e0de5aef5edff1267d892cb66410a77c7 /test | |
parent | aa538c52a747b4ab0ed6cdf3d7b7acf5a2972f86 (diff) | |
parent | fbd04a6af6e9eda22eebaae27d712ae08272c131 (diff) | |
download | tangerine-wallet-browser-b944a63ff89e3c45f7d7e49b2d93a5442cde4462.tar tangerine-wallet-browser-b944a63ff89e3c45f7d7e49b2d93a5442cde4462.tar.gz tangerine-wallet-browser-b944a63ff89e3c45f7d7e49b2d93a5442cde4462.tar.bz2 tangerine-wallet-browser-b944a63ff89e3c45f7d7e49b2d93a5442cde4462.tar.lz tangerine-wallet-browser-b944a63ff89e3c45f7d7e49b2d93a5442cde4462.tar.xz tangerine-wallet-browser-b944a63ff89e3c45f7d7e49b2d93a5442cde4462.tar.zst tangerine-wallet-browser-b944a63ff89e3c45f7d7e49b2d93a5442cde4462.zip |
Merge pull request #2591 from MetaMask/NewUI-flat
Release 4.0.4
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/tx-controller-test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js index bb51ab01f..aeefd5ec6 100644 --- a/test/unit/tx-controller-test.js +++ b/test/unit/tx-controller-test.js @@ -118,8 +118,8 @@ describe('Transaction Controller', function () { stub.restore() }) - it('should emit newUnaprovedTx event and pass txMeta as the first argument', function (done) { - txController.once('newUnaprovedTx', (txMetaFromEmit) => { + it('should emit newUnapprovedTx event and pass txMeta as the first argument', function (done) { + txController.once('newUnapprovedTx', (txMetaFromEmit) => { assert(txMetaFromEmit, 'txMeta is falsey') assert.equal(txMetaFromEmit.id, 1, 'the right txMeta was passed') done() @@ -129,7 +129,7 @@ describe('Transaction Controller', function () { }) it('should resolve when finished and status is submitted and resolve with the hash', function (done) { - txController.once('newUnaprovedTx', (txMetaFromEmit) => { + txController.once('newUnapprovedTx', (txMetaFromEmit) => { setTimeout(() => { txController.setTxHash(txMetaFromEmit.id, '0x0') txController.txStateManager.setTxStatusSubmitted(txMetaFromEmit.id) @@ -145,7 +145,7 @@ describe('Transaction Controller', function () { }) it('should reject when finished and status is rejected', function (done) { - txController.once('newUnaprovedTx', (txMetaFromEmit) => { + txController.once('newUnapprovedTx', (txMetaFromEmit) => { setTimeout(() => { txController.txStateManager.setTxStatusRejected(txMetaFromEmit.id) }, 10) |