aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-11-16 04:03:13 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-11-16 04:03:13 +0800
commite61ba93194fe1bfb5fd2644951eebb3f3369f4ad (patch)
treedf23cb13d13e345bbbc3a904fb9161570bdd2d6d /test/unit
parentf8d38f44c2612f0f291063814ec0e98bb4aaf4bb (diff)
parent707a10548d4c6f1574395c7d72f432fa65d6fb9a (diff)
downloadtangerine-wallet-browser-e61ba93194fe1bfb5fd2644951eebb3f3369f4ad.tar
tangerine-wallet-browser-e61ba93194fe1bfb5fd2644951eebb3f3369f4ad.tar.gz
tangerine-wallet-browser-e61ba93194fe1bfb5fd2644951eebb3f3369f4ad.tar.bz2
tangerine-wallet-browser-e61ba93194fe1bfb5fd2644951eebb3f3369f4ad.tar.lz
tangerine-wallet-browser-e61ba93194fe1bfb5fd2644951eebb3f3369f4ad.tar.xz
tangerine-wallet-browser-e61ba93194fe1bfb5fd2644951eebb3f3369f4ad.tar.zst
tangerine-wallet-browser-e61ba93194fe1bfb5fd2644951eebb3f3369f4ad.zip
Merge branch 'master' into merge-master
Diffstat (limited to 'test/unit')
-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)