mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix test
This commit is contained in:
parent
59124eb6fd
commit
e7f838e626
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user