Comparing version
@@ -1,2 +0,2 @@ | ||
var isArgs = require('is-args'); | ||
var isArgs = require('lodash.isarguments'); | ||
@@ -3,0 +3,0 @@ module.exports = function (data) { |
{ | ||
"name": "as-array", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Make any value an array", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"is-args": "0.0.1" | ||
"lodash.isarguments": "2.4.x" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
@@ -21,3 +21,3 @@ var asArray = require('../'); | ||
test('converts arguments variable into array', function (t) { | ||
test('converts arguments variable with numbers into array', function (t) { | ||
function tester () { | ||
@@ -29,2 +29,12 @@ t.deepEqual(asArray(arguments), [1,2], 'converted to array'); | ||
tester(1, 2); | ||
}); | ||
}); | ||
test('converts arguments variable with strings into array', function (t) { | ||
function tester () { | ||
t.deepEqual(asArray(arguments), ['arg1', 'arg2'], 'converted to array'); | ||
t.end(); | ||
}; | ||
tester('arg1', 'arg2'); | ||
}); | ||
2153
13.98%37
27.59%+ Added
+ Added
- Removed
- Removed