Skip to content

Instantly share code, notes, and snippets.

@carchrae
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carchrae/9784510 to your computer and use it in GitHub Desktop.
Save carchrae/9784510 to your computer and use it in GitHub Desktop.
//no vars on this stuff - lets me customize the window/document objects
document = jsdom();
window = document.createWindow();
window.hasBigEars = true;
//this is/was client side js that expects certain window properties to be there - eg, hasBigEars
var app = require('./js-that-loves-big-ears.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment