'use strict';
var assert = require('assert');
var util = require('..');

describe('test', function () {
    
    describe('p2pkh test', function () {
        var getTransactionFees = function(input_num){
            return util.tx_calc_fee( util.tx_calc_byte(util.p2pkh_calc_input_byte(), input_num, 1), util.getBaseBytePerSatoshi() )
        }
        it('p2pkh', function () {
            assert.equal(getTransactionFees(1), 1920)
        })
    })
    describe('p2sh test', function () {
        var getMultisigTransactionFees = function(input_num, m, n){
            return util.tx_calc_fee( util.tx_calc_byte(util.p2sh_calc_input_byte(m,n), input_num, 1), util.getBaseBytePerSatoshi() )
        }
        it('p2sh 1 of 1', function () {
            assert.equal(getMultisigTransactionFees(1, 1, 1), 1980)
        })
        it('p2sh 2 of 3', function () {
            assert.equal(getMultisigTransactionFees(1, 2, 3), 3390)
        })
    })
})

@@ -93,24 +93,61 @@
 nction () %7B%0A
+    util.BASE_BYTE_PER_SATOSHI = 10;%0A
     %0A    des
@@ -338,36 +338,40 @@
 1), util.get
-BaseBytePerS
+_base_byte_per_s
 atoshi() )%0A 
@@ -707,20 +707,24 @@
 .get
-BaseBytePerS
+_base_byte_per_s
 atos

Update test.js