aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-07-08 05:32:03 +0800
committerGitHub <noreply@github.com>2017-07-08 05:32:03 +0800
commitf5de16c91174fbbf208e5aef8f542d3bbbb3cb93 (patch)
tree62c7cb2f6bf40f8cc0f0dcda5e410b492ee71a71 /test
parentab8bae421e6b172f811694a597536c7d222043cd (diff)
downloadtangerine-wallet-browser-f5de16c91174fbbf208e5aef8f542d3bbbb3cb93.tar
tangerine-wallet-browser-f5de16c91174fbbf208e5aef8f542d3bbbb3cb93.tar.gz
tangerine-wallet-browser-f5de16c91174fbbf208e5aef8f542d3bbbb3cb93.tar.bz2
tangerine-wallet-browser-f5de16c91174fbbf208e5aef8f542d3bbbb3cb93.tar.lz
tangerine-wallet-browser-f5de16c91174fbbf208e5aef8f542d3bbbb3cb93.tar.xz
tangerine-wallet-browser-f5de16c91174fbbf208e5aef8f542d3bbbb3cb93.tar.zst
tangerine-wallet-browser-f5de16c91174fbbf208e5aef8f542d3bbbb3cb93.zip
test - tx controller - fix promise handling
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-controller-test.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 9dfe0b982..a5af13915 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -270,7 +270,7 @@ describe('Transaction Controller', function () {
})
- it('does not overwrite set values', function (done) {
+ it('does not overwrite set values', function () {
this.timeout(15000)
const wrongValue = '0x05'
@@ -289,9 +289,7 @@ describe('Transaction Controller', function () {
const pubStub = sinon.stub(txController.txProviderUtils, 'publishTransaction')
.callsArgWithAsync(1, null, originalValue)
- txController.approveTransaction(txMeta.id).then((err) => {
- assert.ifError(err, 'should not error')
-
+ return txController.approveTransaction(txMeta.id).then(() => {
const result = txController.getTx(txMeta.id)
const params = result.txParams
@@ -303,7 +301,6 @@ describe('Transaction Controller', function () {
priceStub.restore()
signStub.restore()
pubStub.restore()
- done()
})
})
})