aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/util-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/util-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/util-test.js')
-rw-r--r--test/unit/util-test.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/unit/util-test.js b/test/unit/util-test.js
deleted file mode 100644
index 6da185b2c..000000000
--- a/test/unit/util-test.js
+++ /dev/null
@@ -1,41 +0,0 @@
-const assert = require('assert')
-const { sufficientBalance } = require('../../app/scripts/lib/util')
-
-
-describe('SufficientBalance', function () {
- it('returns true if max tx cost is equal to balance.', function () {
- const tx = {
- 'value': '0x1',
- 'gas': '0x2',
- 'gasPrice': '0x3',
- }
- const balance = '0x8'
-
- const result = sufficientBalance(tx, balance)
- assert.ok(result, 'sufficient balance found.')
- })
-
- it('returns true if max tx cost is less than balance.', function () {
- const tx = {
- 'value': '0x1',
- 'gas': '0x2',
- 'gasPrice': '0x3',
- }
- const balance = '0x9'
-
- const result = sufficientBalance(tx, balance)
- assert.ok(result, 'sufficient balance found.')
- })
-
- it('returns false if max tx cost is more than balance.', function () {
- const tx = {
- 'value': '0x1',
- 'gas': '0x2',
- 'gasPrice': '0x3',
- }
- const balance = '0x6'
-
- const result = sufficientBalance(tx, balance)
- assert.ok(!result, 'insufficient balance found.')
- })
-}) \ No newline at end of file