aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-helper-test.js
diff options
context:
space:
mode:
authortmashuang <thomas.b.huang@gmail.com>2018-05-21 20:59:26 +0800
committertmashuang <thomas.b.huang@gmail.com>2018-05-21 20:59:26 +0800
commit13ebb0b455bc775a53b6bb30e675a39d02d8f6f5 (patch)
tree8e746281051ff1f75b948d89e1053c8da2ffc2cd /test/unit/tx-helper-test.js
parentf279a8e61a3f50326fe9f26b0b860af47cd662fb (diff)
downloadtangerine-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.js17
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')
- })
-})