web3.js/test/utils.fromDecimal.js
Fabian Vogelsteller 545de254f9 add more tests
2015-02-26 15:54:49 +01:00

12 lines
365 B
JavaScript

var assert = require('assert');
var utils = require('../lib/utils.js');
describe('utils', function () {
describe('fromDecimal', function () {
it('should return the correct value', function () {
assert.equal(utils.fromDecimal(1000), "0x3e8");
assert.equal(utils.fromDecimal('1000'), "0x3e8");
});
});
});