mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-24 12:08:22 +00:00
12 lines
365 B
JavaScript
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");
|
|
});
|
|
});
|
|
}); |