Comparing version 2.2.3 to 2.3.0
@@ -28,3 +28,3 @@ 'use strict' | ||
end = -Infinity, | ||
str = '\n\n-----', | ||
str = '\n-----', | ||
i, focus, checkElFocus, lineNum | ||
@@ -31,0 +31,0 @@ |
@@ -8,4 +8,7 @@ 'use strict' | ||
*/ | ||
function Test() { | ||
function Test(path) { | ||
/** @member {string} */ | ||
this.path = path | ||
/** @member {string} */ | ||
this.name = '' | ||
@@ -12,0 +15,0 @@ |
@@ -66,3 +66,3 @@ /*globals describe, before, it*/ | ||
if (file.substr(-3) === '.md' && options.filterFile(file)) { | ||
var test = parse(fs.readFileSync(file, 'utf8'), options.preParse) | ||
var test = parse(file, fs.readFileSync(file, 'utf8'), options.preParse) | ||
if (options.onTest) { | ||
@@ -69,0 +69,0 @@ options.onTest(test) |
{ | ||
"name": "api-test", | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"author": "Sitegui <sitegui@sitegui.com.br>", | ||
@@ -20,5 +20,5 @@ "description": "API testing made simple", | ||
"mocha": "^2.1.0", | ||
"mongodb": "^1.4.28", | ||
"request": "^2.51.0", | ||
"should": "^4.6.0" | ||
"mongodb": "^1.4.33", | ||
"request": "^2.53.0", | ||
"should": "^5.0.1" | ||
}, | ||
@@ -33,6 +33,6 @@ "license": "MIT", | ||
"devDependencies": { | ||
"body-parser": "^1.10.1", | ||
"express": "^4.11.0", | ||
"mongoose": "^3.8.21" | ||
"body-parser": "^1.12.0", | ||
"express": "^4.12.2", | ||
"mongoose": "^3.8.24" | ||
} | ||
} |
@@ -21,2 +21,3 @@ /** | ||
/** | ||
* @param {string} path | ||
* @param {string} text | ||
@@ -27,3 +28,3 @@ * @param {function(Array<Header|Obj>, Test)} preParse | ||
*/ | ||
module.exports = function (text, preParse) { | ||
module.exports = function (path, text, preParse) { | ||
var originalLines, i, line, els, lastObj, test | ||
@@ -57,3 +58,3 @@ | ||
// Also recursively parse their content | ||
test = new Test | ||
test = new Test(path) | ||
try { | ||
@@ -66,2 +67,3 @@ preParse(els, test) | ||
if (e instanceof ParseError) { | ||
console.log('\n> In %s', path) | ||
e.logSourceContext(originalLines) | ||
@@ -68,0 +70,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
65306
1909
+ Addedshould@5.2.0(transitive)
- Removedshould@4.6.5(transitive)
Updatedmongodb@^1.4.33
Updatedrequest@^2.53.0
Updatedshould@^5.0.1