aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-controller-test.js
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-07-26 06:26:41 +0800
committerGitHub <noreply@github.com>2017-07-26 06:26:41 +0800
commita929fb2387de87619192ea0a86fe1ead4f7a0361 (patch)
tree21ced267219f692dc00234f814059e7dc68afbda /test/unit/tx-controller-test.js
parentb81f8831505b1ebb1d58a474d52b068d42879d56 (diff)
parent0c73d6d852ac9c98613f71d6ee87f9d89c3c2b47 (diff)
downloadtangerine-wallet-browser-a929fb2387de87619192ea0a86fe1ead4f7a0361.tar.gz
tangerine-wallet-browser-a929fb2387de87619192ea0a86fe1ead4f7a0361.tar.zst
tangerine-wallet-browser-a929fb2387de87619192ea0a86fe1ead4f7a0361.zip
Merge branch 'master' into betterErrorsOnTx
Diffstat (limited to 'test/unit/tx-controller-test.js')
-rw-r--r--test/unit/tx-controller-test.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 7b86cfe14..31908569a 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -343,13 +343,17 @@ describe('Transaction Controller', function () {
// Adding the fake tx:
txController.addTx(clone(txMeta))
- txController._resubmitTx(txMeta, function (err) {
- assert.ifError(err, 'should not throw an error')
+ txController._resubmitTx(txMeta)
+ .then(() => {
const updatedMeta = txController.getTx(txMeta.id)
assert.notEqual(updatedMeta.status, txMeta.status, 'status changed.')
assert.equal(updatedMeta.status, 'failed', 'tx set to failed.')
done()
})
+ .catch((err) => {
+ assert.ifError(err, 'should not throw an error')
+ done()
+ })
})
})
})