X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fjquery.spec.js;h=2617b3df1ed01eba4569bde61c10000dfc4551c2;hb=7f22fb422b50e6020c9c9566bdc34a97c247abd0;hp=152f71975751862477465bb16452f25d874338bf;hpb=8111bf5133e4335ae1b14a79470d44b4c7003ce0;p=mkws-moved-to-github.git diff --git a/test/spec/jquery.spec.js b/test/spec/jquery.spec.js index 152f719..2617b3d 100644 --- a/test/spec/jquery.spec.js +++ b/test/spec/jquery.spec.js @@ -1,13 +1,13 @@ -/* Copyright (c) 2013 Index Data 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");