diff options
author | Johannes <mail@johannesewald.de> | 2012-06-15 17:48:01 +0400 |
---|---|---|
committer | Johannes <mail@johannesewald.de> | 2012-06-15 17:48:01 +0400 |
commit | 512548d888a8a34c3acf8b4c485579596812e506 (patch) | |
tree | 98cfacbdd7d85cb542f3912ea88ec26f6d89f6e2 /test/rewire.test.js | |
parent | d936fe1491409573a28cc3a981fc110f08bf6a4c (diff) |
namespaced all variables within the __set__ method so you can really set all variables
Diffstat (limited to 'test/rewire.test.js')
-rw-r--r-- | test/rewire.test.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rewire.test.js b/test/rewire.test.js index 9216af6..1e40041 100644 --- a/test/rewire.test.js +++ b/test/rewire.test.js @@ -63,6 +63,7 @@ describe("rewire", function () { expect(rewiredModuleA.getMyNumber()).to.be(2);
rewiredModuleA.__set__("myObj", newObj);
expect(rewiredModuleA.getMyObj()).to.be(newObj);
+ rewiredModuleA.__set__("env", "ENVENV");
});
it("should provide the ability to get private vars", function () {
var rewiredModuleA = rewire(testModules.A);
|