aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2017-11-15 01:41:11 +0800
committerGitHub <noreply@github.com>2017-11-15 01:41:11 +0800
commit707a10548d4c6f1574395c7d72f432fa65d6fb9a (patch)
tree0ff2a21d77bd5287a504032213e0750d29ec4723 /test
parent7bfb08cf3b5ed93d28147e5ddaad18e3aaf49c8b (diff)
parent41fea44af3105313b33d9882859935019b6a2410 (diff)
downloadtangerine-wallet-browser-707a10548d4c6f1574395c7d72f432fa65d6fb9a.tar.gz
tangerine-wallet-browser-707a10548d4c6f1574395c7d72f432fa65d6fb9a.tar.zst
tangerine-wallet-browser-707a10548d4c6f1574395c7d72f432fa65d6fb9a.zip
Merge pull request #2540 from doraemondrian/master
newUnaprovedTx => newUnapprovedTx
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-controller-test.js8
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)