Last active
August 29, 2015 14:20
-
-
Save donnielrt/a2b6a3f38ee461de3d72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using JSDOM 3.1.2 on node.js | |
var jsdom = require("jsdom").jsdom; | |
var generatorMarkup = '<html><head><title>Hola</title></head><body>Body</body></html>'; | |
var doc = jsdom(generatorMarkup, { | |
loaded: function() { | |
console.log('Loaded'); | |
}, | |
done: function(errors, window) { | |
console.log('Done'); | |
} | |
}); | |
doc.onLoad = function() { | |
console.log('OnLoad'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment