Comparing version
@@ -40,2 +40,3 @@ 'use strict'; | ||
inputUnit = inputUnit.toUpperCase(); | ||
outputUnit = outputUnit.toUpperCase(); | ||
var i = _.indexOf(units, inputUnit); | ||
@@ -42,0 +43,0 @@ if (i < 0){ |
{ | ||
"name": "8bits", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A Javascript library for manipulating and converting byte values", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -48,2 +48,3 @@ 'use strict'; | ||
it('should convert from one unit to another', function () { | ||
expect(byte(1, {from: 'kB', to: 'kB'})).to.equal('1 kB'); | ||
expect(byte(100, {from: 'kB', to: 'B'})).to.equal('100000 B'); | ||
@@ -50,0 +51,0 @@ expect(byte(100, {from: 'kB', to: 'B', binary: true})).to.equal('102400 B'); |
6168
1.66%126
1.61%