mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Confine mock strategy to describe block
This commit is contained in:
parent
c76194d7c3
commit
f13c637b23
@ -8,6 +8,9 @@ describe('Nonce Tracker', function () {
|
||||
let getConfirmedTransactions, confirmedTxs
|
||||
let providerResultStub = {}
|
||||
|
||||
describe('#getNonceLock', function () {
|
||||
|
||||
describe('with 3 confirmed and 1 pending', function () {
|
||||
beforeEach(function () {
|
||||
const txGen = new MockTxGen()
|
||||
confirmedTxs = txGen.generate({ status: 'confirmed' }, { count: 3 })
|
||||
@ -29,7 +32,6 @@ describe('Nonce Tracker', function () {
|
||||
})
|
||||
})
|
||||
|
||||
describe('#getNonceLock', function () {
|
||||
it('should work', async function () {
|
||||
this.timeout(15000)
|
||||
const nonceLock = await nonceTracker.getNonceLock('0x7d3517b0d011698406d6e0aed8453f0be2697926')
|
||||
@ -48,5 +50,7 @@ describe('Nonce Tracker', function () {
|
||||
assert.equal(nonceLock.nextNonce, '4', 'nonce should be 4')
|
||||
await nonceLock.releaseLock()
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user