diff options
author | tmashuang <thomas.b.huang@gmail.com> | 2018-05-21 20:59:26 +0800 |
---|---|---|
committer | tmashuang <thomas.b.huang@gmail.com> | 2018-05-21 20:59:26 +0800 |
commit | 13ebb0b455bc775a53b6bb30e675a39d02d8f6f5 (patch) | |
tree | 8e746281051ff1f75b948d89e1053c8da2ffc2cd /test/unit/tx-helper-test.js | |
parent | f279a8e61a3f50326fe9f26b0b860af47cd662fb (diff) | |
download | tangerine-wallet-browser-13ebb0b455bc775a53b6bb30e675a39d02d8f6f5.tar.gz tangerine-wallet-browser-13ebb0b455bc775a53b6bb30e675a39d02d8f6f5.tar.zst tangerine-wallet-browser-13ebb0b455bc775a53b6bb30e675a39d02d8f6f5.zip |
Moved loose some loose test files to sub folders
Diffstat (limited to 'test/unit/tx-helper-test.js')
-rw-r--r-- | test/unit/tx-helper-test.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/unit/tx-helper-test.js b/test/unit/tx-helper-test.js deleted file mode 100644 index cc6543c30..000000000 --- a/test/unit/tx-helper-test.js +++ /dev/null @@ -1,17 +0,0 @@ -const assert = require('assert') -const txHelper = require('../../ui/lib/tx-helper') - -describe('txHelper', function () { - it('always shows the oldest tx first', function () { - const metamaskNetworkId = 1 - const txs = { - a: { metamaskNetworkId, time: 3 }, - b: { metamaskNetworkId, time: 1 }, - c: { metamaskNetworkId, time: 2 }, - } - - const sorted = txHelper(txs, null, null, metamaskNetworkId) - assert.equal(sorted[0].time, 1, 'oldest tx first') - assert.equal(sorted[2].time, 3, 'newest tx last') - }) -}) |