aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-03-08 03:36:13 +0800
committerDan Finlay <dan@danfinlay.com>2017-03-08 03:36:13 +0800
commit6253885e286a554736e2e51736a742d39a377727 (patch)
tree49901cc756aef57d039ef32e03a5973fafa27840 /test
parent99b49b11f61314eee372c6679db3ad7217c7f4f2 (diff)
downloadtangerine-wallet-browser-6253885e286a554736e2e51736a742d39a377727.tar
tangerine-wallet-browser-6253885e286a554736e2e51736a742d39a377727.tar.gz
tangerine-wallet-browser-6253885e286a554736e2e51736a742d39a377727.tar.bz2
tangerine-wallet-browser-6253885e286a554736e2e51736a742d39a377727.tar.lz
tangerine-wallet-browser-6253885e286a554736e2e51736a742d39a377727.tar.xz
tangerine-wallet-browser-6253885e286a554736e2e51736a742d39a377727.tar.zst
tangerine-wallet-browser-6253885e286a554736e2e51736a742d39a377727.zip
Remove unrelated test file
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-utils-test.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/test/unit/tx-utils-test.js b/test/unit/tx-utils-test.js
deleted file mode 100644
index 44d8e13e9..000000000
--- a/test/unit/tx-utils-test.js
+++ /dev/null
@@ -1,38 +0,0 @@
-const assert = require('assert')
-const ethUtil = require('ethereumjs-util')
-const BN = ethUtil.BN
-
-const TxUtils = require('../../app/scripts/lib/tx-utils')
-
-
-describe('txUtils', function() {
- let txUtils
-
- before(function() {
- txUtils = new TxUtils()
- })
-
- describe('addGasBuffer', function() {
- describe('adds a flat value', function() {
- it('over an empty value', function() {
- const input = '0x0'
- const output = txUtils.addGasBuffer(input)
- assert.notEqual(output, input, 'changed the value')
-
- const inputBn = new BN(input, 'hex')
- const outputBn = new BN(output, 'hex')
- assert(outputBn.gt(inputBn), 'returns a greater value')
- })
-
- it('over an value', function() {
- const input = '0x123fad'
- const output = txUtils.addGasBuffer(input)
- assert.notEqual(output, input, 'changed the value')
-
- const inputBn = new BN(input, 'hex')
- const outputBn = new BN(output, 'hex')
- assert(outputBn.gt(inputBn), 'returns a greater value')
- })
- })
- })
-})