Comparing version 0.7.7 to 0.8.0
@@ -57,3 +57,13 @@ var path = require('path'), | ||
matcher = function (file) { | ||
return file === options.code.path; | ||
var files = options.coverage.files; | ||
if (files) { | ||
files = Array.isArray(files) ? files : [files]; | ||
return files.some(function(f) { | ||
if (typeof f === 'string') return file.indexOf(f) === 0; | ||
else if (f instanceof RegExp) return f.test(file); | ||
else throw new Error("invalid entry in options.coverage.files: " + typeof f); | ||
}); | ||
} else { | ||
return file === options.code.path; | ||
} | ||
} | ||
@@ -60,0 +70,0 @@ instrumenter = new istanbul.Instrumenter(); |
{ | ||
"name": "qunit", | ||
"description": "QUnit testing framework for nodejs", | ||
"version": "0.7.7", | ||
"version": "0.8.0", | ||
"author": "Oleg Slobodskoi <oleg008@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
45098
1167