proxyquire
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "proxyquire", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Proxies nodejs require in order to allow overriding dependencies during testing.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -192,3 +192,3 @@ # proxyquire [![Build Status](https://secure.travis-ci.org/thlorenz/proxyquire.png)](http://travis-ci.org/thlorenz/proxyquire) | ||
// Add override | ||
bar.toAtm = function (val) { return 0; /* wonder what happens now */ }; | ||
barStub.toAtm = function (val) { return 0; /* wonder what happens now */ }; | ||
@@ -198,3 +198,3 @@ [ .. run some tests .. ] | ||
// Change override | ||
bar.toAtm = function (val) { return -1 * val; /* or now */ }; | ||
barStub.toAtm = function (val) { return -1 * val; /* or now */ }; | ||
@@ -201,0 +201,0 @@ [ .. run some tests .. ] |
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
54256