diff options
author | Rich Trott <rtrott@gmail.com> | 2014-10-28 21:56:55 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2014-10-28 21:56:55 +0300 |
commit | 5b237d99ef054d6a0ddc68412af1d46a355d13c2 (patch) | |
tree | 0af01385fdb206f61927a5d2349e49b06bb51a1c /test | |
parent | 93d3907216f1a0ea4bc24eb0bc83775f84a6063c (diff) |
fix leak, add test, for #33
Diffstat (limited to 'test')
-rw-r--r-- | test/rewire.test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rewire.test.js b/test/rewire.test.js index 1ac0129..57e37be 100644 --- a/test/rewire.test.js +++ b/test/rewire.test.js @@ -31,4 +31,10 @@ describe("rewire", function () { }); expect(coffeeModule.readFileSync()).to.be("It works!"); }); + it("should keep src variable in function scope", function () { + //expect(src).to.be(undefined); + // detectStrictMode(); + // console.dir(global); + expect(global.src).to.be(undefined); + }); });
\ No newline at end of file |