functional-docs
Advanced tools
Comparing version 0.1.4 to 0.1.5
55
index.js
@@ -34,3 +34,3 @@ var fs = require('fs'), | ||
console.log("Finished running tests on " + srcDir); | ||
callback(err); | ||
return callback(err); | ||
}); | ||
@@ -51,28 +51,31 @@ }); | ||
} | ||
var doc = jsdom.jsdom(content); | ||
readFiles[file] = doc; | ||
async.parallel([ | ||
function(cb) { | ||
preTest.checkMissingAltTag(file, doc, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
}, | ||
function(cb) { | ||
preTest.checkBrokenExternalLink(file, doc, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
}, | ||
function(cb) { | ||
postTest.checkMissingImage(file, doc, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
}, | ||
function(cb) { | ||
postTest.checkBrokenLocalLink(file, doc, readFiles, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
} | ||
], function(err, results) { | ||
callback(err); | ||
jsdom.env(content, function(err, window) { | ||
doc = window.document; | ||
readFiles[file] = doc; | ||
async.parallel([ | ||
function(cb) { | ||
preTest.checkMissingAltTag(file, doc, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
}, | ||
function(cb) { | ||
preTest.checkBrokenExternalLink(file, doc, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
}, | ||
function(cb) { | ||
postTest.checkMissingImage(file, doc, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
}, | ||
function(cb) { | ||
postTest.checkBrokenLocalLink(file, doc, readFiles, options, function(errors) { | ||
checkForErrors(errors, stopOnFail, cb); | ||
}); | ||
} | ||
], function(err, results) { | ||
callback(err); | ||
}); | ||
}); | ||
@@ -79,0 +82,0 @@ }); |
{ | ||
"name": "functional-docs", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"author": "Garen Torikian", | ||
@@ -5,0 +5,0 @@ "keywords": ["documentation", "docs", "testing", "html"], |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28435
285
1