start building out views
This commit is contained in:
9
bower_components/jsdom/example/jquery/run.js
vendored
Normal file
9
bower_components/jsdom/example/jquery/run.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var jsdom = require("../../lib/jsdom");
|
||||
var window = jsdom.jsdom().parentWindow;
|
||||
|
||||
jsdom.jQueryify(window, "http://code.jquery.com/jquery.js", function() {
|
||||
window.jQuery("body").append("<div class='testing'>Hello World, It works!</div>");
|
||||
console.log(window.jQuery(".testing").text());
|
||||
});
|
Reference in New Issue
Block a user