aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-08-08 02:56:17 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-08-08 02:56:17 +0800
commite7f838e626ff1ce29490a081d7ee3f917745dd62 (patch)
tree8fa0e78499ca23605ad3fc5c64554667704a3303 /test
parent59124eb6fd749cde1c021c69717d6f2c797428c7 (diff)
downloadtangerine-wallet-browser-e7f838e626ff1ce29490a081d7ee3f917745dd62.tar
tangerine-wallet-browser-e7f838e626ff1ce29490a081d7ee3f917745dd62.tar.gz
tangerine-wallet-browser-e7f838e626ff1ce29490a081d7ee3f917745dd62.tar.bz2
tangerine-wallet-browser-e7f838e626ff1ce29490a081d7ee3f917745dd62.tar.lz
tangerine-wallet-browser-e7f838e626ff1ce29490a081d7ee3f917745dd62.tar.xz
tangerine-wallet-browser-e7f838e626ff1ce29490a081d7ee3f917745dd62.tar.zst
tangerine-wallet-browser-e7f838e626ff1ce29490a081d7ee3f917745dd62.zip
fix test
Diffstat (limited to 'test')
-rw-r--r--test/unit/pending-tx-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/pending-tx-test.js b/test/unit/pending-tx-test.js
index 5103a9b62..d0606bb17 100644
--- a/test/unit/pending-tx-test.js
+++ b/test/unit/pending-tx-test.js
@@ -224,7 +224,7 @@ describe('PendingTransactionWatcher', function () {
pendingTxWatcher.resubmitPendingTxs()
})
})
- describe('#_resubmitTx with a too-low balance', function () {
+ describe.only('#_resubmitTx with a too-low balance', function () {
it('should return before publishing the transaction because to low of balance', function (done) {
const lowBalance = '0x0'
pendingTxWatcher.getBalance = (address) => {
@@ -237,8 +237,8 @@ describe('PendingTransactionWatcher', function () {
// Stubbing out current account state:
// Adding the fake tx:
- pendingTxWatcher.once('txWarning', (txMeta) => {
- assert(txMeta.warning.message, 'Should have a warning message')
+ pendingTxWatcher.once('txFailed', (txId, err) => {
+ assert(err, 'Should have a error')
done()
})
pendingTxWatcher._resubmitTx(txMeta)