Comparing version 0.2.0 to 0.2.1
@@ -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'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6168
126