milli should have two l's

This commit is contained in:
Alexandre Van de Sande 2015-05-22 12:04:06 -03:00
parent bacb03cc5d
commit 5866f0882a
3 changed files with 9 additions and 9 deletions

View File

@ -47,10 +47,10 @@ var ETH_UNITS = [
'picoether',
'nanoether',
'microether',
'miliether',
'milliether',
'nano',
'micro',
'mili',
'milli',
'ether',
'grand',
'Mether',

View File

@ -51,8 +51,8 @@ var unitMap = {
'microether': '1000000000000',
'micro': '1000000000000',
'finney': '1000000000000000',
'miliether': '1000000000000000',
'mili': '1000000000000000',
'milliether': '1000000000000000',
'milli': '1000000000000000',
'ether': '1000000000000000000',
'kether': '1000000000000000000000',
'grand': '1000000000000000000000',
@ -252,7 +252,7 @@ var getValueOfUnit = function (unit) {
* - mwei picoether babbage
* - gwei nanoether shannon nano
* - -- microether szabo micro
* - -- miliether finney mili
* - -- milliether finney milli
* - ether -- --
* - kether einstein grand
* - mether
@ -279,7 +279,7 @@ var fromWei = function(number, unit) {
* - mwei picoether babbage
* - gwei nanoether shannon nano
* - -- microether szabo micro
* - -- miliether finney mili
* - -- milliether finney milli
* - ether -- --
* - kether einstein grand
* - mether

View File

@ -23,9 +23,9 @@ describe('lib/utils/utils', function () {
assert.equal(utils.toWei(1, 'babbage'), utils.toWei(1, 'picoether'));
assert.equal(utils.toWei(1, 'shannon'), utils.toWei(1, 'nanoether'));
assert.equal(utils.toWei(1, 'szabo'), utils.toWei(1, 'microether'));
assert.equal(utils.toWei(1, 'finney'), utils.toWei(1, 'miliether'));
assert.equal(utils.toWei(1, 'mili'), utils.toWei(1, 'miliether'));
assert.equal(utils.toWei(1, 'mili'), utils.toWei(1000, 'micro'));
assert.equal(utils.toWei(1, 'finney'), utils.toWei(1, 'milliether'));
assert.equal(utils.toWei(1, 'milli'), utils.toWei(1, 'milliether'));
assert.equal(utils.toWei(1, 'milli'), utils.toWei(1000, 'micro'));
assert.throws(function () {utils.toWei(1, 'wei1');}, Error);
});