Comparing version 0.1.1 to 0.1.2
@@ -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'); | ||
}); | ||
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
2153
37
+ Addedlodash.isarguments@2.4.x
+ Addedlodash.isarguments@2.4.1(transitive)
- Removedis-args@0.0.1
- Removedis-args@0.0.1(transitive)