From 6253885e286a554736e2e51736a742d39a377727 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 7 Mar 2017 11:36:13 -0800 Subject: [PATCH] Remove unrelated test file --- test/unit/tx-utils-test.js | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 test/unit/tx-utils-test.js 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') - }) - }) - }) -})