aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-08-24 11:04:03 +0800
committerDan Finlay <dan@danfinlay.com>2017-08-24 11:04:03 +0800
commit221575a191a0a8b8c4c17465a0530561e1905297 (patch)
treef96718596ac3bac06116889ea9643885db685573 /test
parentc4ab7a57799167904b863b9cb9423885a9c1cc66 (diff)
downloadtangerine-wallet-browser-221575a191a0a8b8c4c17465a0530561e1905297.tar
tangerine-wallet-browser-221575a191a0a8b8c4c17465a0530561e1905297.tar.gz
tangerine-wallet-browser-221575a191a0a8b8c4c17465a0530561e1905297.tar.bz2
tangerine-wallet-browser-221575a191a0a8b8c4c17465a0530561e1905297.tar.lz
tangerine-wallet-browser-221575a191a0a8b8c4c17465a0530561e1905297.tar.xz
tangerine-wallet-browser-221575a191a0a8b8c4c17465a0530561e1905297.tar.zst
tangerine-wallet-browser-221575a191a0a8b8c4c17465a0530561e1905297.zip
Fix new test, break an older maybe wrong one
Diffstat (limited to 'test')
-rw-r--r--test/unit/nonce-tracker-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/nonce-tracker-test.js b/test/unit/nonce-tracker-test.js
index 5b0732d44..c5a71d6c8 100644
--- a/test/unit/nonce-tracker-test.js
+++ b/test/unit/nonce-tracker-test.js
@@ -18,10 +18,10 @@ describe('Nonce Tracker', function () {
nonceTracker = generateNonceTrackerWith(pendingTxs, confirmedTxs, '0x1')
})
- it('should work', async function () {
+ it('should return 4', async function () {
this.timeout(15000)
const nonceLock = await nonceTracker.getNonceLock('0x7d3517b0d011698406d6e0aed8453f0be2697926')
- assert.equal(nonceLock.nextNonce, '4', 'nonce should be 4')
+ assert.equal(nonceLock.nextNonce, '4', `nonce should be 4 got ${nonceLock.nextNonce}`)
await nonceLock.releaseLock()
})
@@ -41,7 +41,7 @@ describe('Nonce Tracker', function () {
it('should return 0', async function () {
this.timeout(15000)
const nonceLock = await nonceTracker.getNonceLock('0x7d3517b0d011698406d6e0aed8453f0be2697926')
- assert.equal(nonceLock.nextNonce, '0', 'nonce should be 0')
+ assert.equal(nonceLock.nextNonce, '0', `nonce should be 0 returned ${nonceLock.nextNonce}`)
await nonceLock.releaseLock()
})
})