Skip to content

Instantly share code, notes, and snippets.

@chapel
Created October 7, 2010 15:25
Show Gist options
  • Save chapel/615270 to your computer and use it in GitHub Desktop.
Save chapel/615270 to your computer and use it in GitHub Desktop.
var window = jsdom.jsdom(agent.body).createWindow();
jsdom.jQueryify(window, '/home/wyl/webapps/node/jquery.js', function (window, jquery, query) {
window.jQuery('.selector').each(function () {
query.push(this.innerHTML.trim());
});
window.jQuery('.selector2').each(function () {
query2.push(this.innerHTML.trim());
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment