Zombie leaks variables into the global name space as soon as browser.visit is called. Refer to issue #332.
Install the modules and the latest coffee-script within the zombie module
npm install && cd node_modules/zombie && npm install coffee-script
./node_modules/mocha/bin/mocha test/zombie_leaks.js
var Browser = require('zombie');
describe('Zombie', function(){
var browser = new Browser();
it('should leak variables into the global scope', function(done){
browser.visit('http://www.google.com', function(){
done();
});
});
});
..
✖ 1 of 1 test failed:
1) Zombie should leak variables into the global scope:
Error: global leaks detected: k, chars, char, i, name