X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fjquery.spec.js;h=2617b3df1ed01eba4569bde61c10000dfc4551c2;hb=7f22fb422b50e6020c9c9566bdc34a97c247abd0;hp=1f473c9eefee2e334c1053f990ce54bb164aabe3;hpb=3519b8b5d59428b5c48e15cbd3513c7a57e1a89c;p=mkws-moved-to-github.git diff --git a/test/spec/jquery.spec.js b/test/spec/jquery.spec.js index 1f473c9..2617b3d 100644 --- a/test/spec/jquery.spec.js +++ b/test/spec/jquery.spec.js @@ -1,13 +1,13 @@ -/* Copyright (c) 2013 IndexData ApS. http://indexdata.com +/* Copyright (c) 2013-2015 Index Data ApS. http://indexdata.com * - * jQuery test + * jquery test * */ -describe("jQuery suite simple", function () { - var $ = require('jQuery'); +describe("jquery suite simple", function () { + var $ = require('jquery')(require("jsdom").jsdom().parentWindow); - it("jQuery append test", function () { + it("jquery append test", function () { $("body").append("

test passes h1

"); expect($("body").html()).toMatch(/

/); $("

this is a paragraph

").appendTo("h1");