aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-10-03 06:14:15 +0800
committerkumavis <aaron@kumavis.me>2017-10-03 06:14:15 +0800
commita86f6d6d90bda273861079b464c290dff6ef5c0e (patch)
tree7040d234e64ca16d18cf706218c606f11908f3f0 /test/unit
parent22eaf92ec2c948ed88df30bc3a3b26f140359f09 (diff)
downloadtangerine-wallet-browser-a86f6d6d90bda273861079b464c290dff6ef5c0e.tar
tangerine-wallet-browser-a86f6d6d90bda273861079b464c290dff6ef5c0e.tar.gz
tangerine-wallet-browser-a86f6d6d90bda273861079b464c290dff6ef5c0e.tar.bz2
tangerine-wallet-browser-a86f6d6d90bda273861079b464c290dff6ef5c0e.tar.lz
tangerine-wallet-browser-a86f6d6d90bda273861079b464c290dff6ef5c0e.tar.xz
tangerine-wallet-browser-a86f6d6d90bda273861079b464c290dff6ef5c0e.tar.zst
tangerine-wallet-browser-a86f6d6d90bda273861079b464c290dff6ef5c0e.zip
pending tx tracker - test - rename tests to match event name
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/pending-tx-test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/pending-tx-test.js b/test/unit/pending-tx-test.js
index 4da0eff5d..097564033 100644
--- a/test/unit/pending-tx-test.js
+++ b/test/unit/pending-tx-test.js
@@ -57,7 +57,7 @@ describe('PendingTransactionTracker', function () {
const block = Proxy.revocable({}, {}).revoke()
pendingTxTracker.checkForTxInBlock(block)
})
- it('should emit \'txFailed\' if the txMeta does not have a hash', function (done) {
+ it('should emit \'tx:failed\' if the txMeta does not have a hash', function (done) {
const block = Proxy.revocable({}, {}).revoke()
pendingTxTracker.getPendingTransactions = () => [txMetaNoHash]
pendingTxTracker.once('tx:failed', (txId, err) => {
@@ -105,7 +105,7 @@ describe('PendingTransactionTracker', function () {
})
describe('#_checkPendingTx', function () {
- it('should emit \'txFailed\' if the txMeta does not have a hash', function (done) {
+ it('should emit \'tx:failed\' if the txMeta does not have a hash', function (done) {
pendingTxTracker.once('tx:failed', (txId, err) => {
assert(txId, txMetaNoHash.id, 'should pass txId')
done()
@@ -172,7 +172,7 @@ describe('PendingTransactionTracker', function () {
.catch(done)
pendingTxTracker.resubmitPendingTxs()
})
- it('should not emit \'txFailed\' if the txMeta throws a known txError', function (done) {
+ it('should not emit \'tx:failed\' if the txMeta throws a known txError', function (done) {
knownErrors =[
// geth
' Replacement transaction Underpriced ',
@@ -199,7 +199,7 @@ describe('PendingTransactionTracker', function () {
pendingTxTracker.resubmitPendingTxs()
})
- it('should emit \'txFailed\' if it encountered a real error', function (done) {
+ it('should emit \'tx:failed\' if it encountered a real error', function (done) {
pendingTxTracker.once('tx:failed', (id, err) => err.message === 'im some real error' ? txList[id - 1].resolve() : done(err))
pendingTxTracker.getPendingTransactions = () => txList