proxyquire
Advanced tools
Comparing version 1.0.1 to 1.1.0
'use strict'; | ||
var util = require('util'); | ||
function ProxyquireError(msg) { | ||
@@ -9,2 +11,4 @@ this.name = 'ProxyquireError'; | ||
util.inherits(ProxyquireError, Error); | ||
module.exports = ProxyquireError; |
{ | ||
"name": "proxyquire", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Proxies nodejs require in order to allow overriding dependencies during testing.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ /*jshint asi:true*/ | ||
assert.throws(action, function (err) { | ||
return err.name === 'ProxyquireError' && regex.test(err.message); | ||
return err.name === 'ProxyquireError' && regex.test(err.message) && regex.test(err.toString()); | ||
}); | ||
@@ -20,0 +20,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
53542
1132