reflect-args
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "reflect-args", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Lets you retrieve argument names, including default values from outside a function.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -0,1 +1,3 @@ | ||
[![Build Status](https://travis-ci.org/Tabaci/reflect-args.svg?branch=master)](https://travis-ci.org/Tabaci/reflect-args) | ||
# reflect-args | ||
@@ -32,3 +34,3 @@ | ||
* { | ||
* foo: undefined, | ||
* foo: undefined, | ||
* bar: 12, | ||
@@ -35,0 +37,0 @@ * test: '12', |
@@ -54,2 +54,18 @@ | ||
}) | ||
it('should work with doc comments', function () { | ||
/** | ||
* I am a documentation comment. Why on Earth I would appear with | ||
* the function itself, I have( no clue. ) | ||
*/ | ||
function test (foo, bar) | ||
{ | ||
} | ||
expect(getArgs(test)).to.deep.equal({ | ||
foo: undefined, | ||
bar: undefined | ||
}) | ||
}) | ||
}) | ||
@@ -56,0 +72,0 @@ |
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
10616
5
267
80