You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
466 B
15 lines
466 B
10 years ago
|
var assert = require('assert');
|
||
|
var utils = require('../lib/utils/utils.js');
|
||
|
|
||
|
describe('utils', function () {
|
||
|
describe('toDecimal', function () {
|
||
|
it('should return the correct value', function () {
|
||
|
|
||
|
assert.equal(utils.toDecimal("0x3e8"), '1000');
|
||
|
// allow compatiblity
|
||
|
assert.equal(utils.toDecimal(100000), '100000');
|
||
|
assert.equal(utils.toDecimal('100000'), '100000');
|
||
|
});
|
||
|
});
|
||
|
});
|