X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=test%2Fspec%2Fjquery.spec.js;fp=test%2Fspec%2Fjquery.spec.js;h=0000000000000000000000000000000000000000;hp=2617b3df1ed01eba4569bde61c10000dfc4551c2;hb=bb7a8e61e67b1bfd4ae000b721fbe124e241755a;hpb=ce1503ff9f918a52ded3643ba8595d49c71e1277 diff --git a/test/spec/jquery.spec.js b/test/spec/jquery.spec.js deleted file mode 100644 index 2617b3d..0000000 --- a/test/spec/jquery.spec.js +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright (c) 2013-2015 Index Data ApS. http://indexdata.com - * - * jquery test - * - */ - -describe("jquery suite simple", function () { - var $ = require('jquery')(require("jsdom").jsdom().parentWindow); - - it("jquery append test", function () { - $("body").append("

test passes h1

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

/); - $("

this is a paragraph

").appendTo("h1"); - expect($("body").html()).toMatch(/this is a paragraph/); - }); - - it("$ append test", function () { - $("

test passes h2

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

/); - - $("

this is a second paragraph

").appendTo("h1"); - expect($("body").html()).toMatch(/this is a paragraph/); - }); - - it("more jquery tests", function () { - // other tests - expect($("h2").html()).toMatch(/test passes h2/); - expect($("h1").html()).toMatch(/test passes h1/); - expect($("h1").html()).not.toMatch(/^$/); - expect($("h1").html()).not.toMatch(/foobar/); - }); -});