X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fjsdom.spec.js;h=273f591c8c41ed0ea5b05f1976a7cb34788410b6;hb=b2f105ea2c3a05d605daf133da207220b7f639b0;hp=4edf683b493a6b7d79900ccb6d77586d78a0dd8b;hpb=ea92871be7063838ddeb6529d7f0fdae2bbd4063;p=mkws-moved-to-github.git diff --git a/test/spec/jsdom.spec.js b/test/spec/jsdom.spec.js index 4edf683..273f591 100644 --- a/test/spec/jsdom.spec.js +++ b/test/spec/jsdom.spec.js @@ -1,33 +1,33 @@ -/* Copyright (c) 2013 IndexData ApS. http://indexdata.com +/* Copyright (c) 2013 Index Data ApS. http://indexdata.com * * jQuery test with DOM/windows object * */ -describe("jQuery suite", function() { - var jsdom = require('jsdom').jsdom; - var myWindow = jsdom().createWindow(); +describe("jQuery suite", function () { + var jsdom = require('jsdom').jsdom; + var myWindow = jsdom().createWindow(); - var $ = require('jquery'); - var jq = require('jquery').create(); - var jQuery = require('jquery').create(myWindow); + var $ = require('jQuery'); + var jq = require('jQuery').create(); + var jQuery = require('jQuery').create(myWindow); - it("jQuery append test", function() { - jQuery("

test passes h1

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

/); - }); + it("jQuery append test", function () { + jQuery("

test passes h1

").appendTo("body"); + expect(jQuery("body").html()).toMatch(/

/); + }); - it("$ append test", function() { - $("

test passes h2

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

/); - }); + it("$ append test", function () { + $("

test passes h2

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

/); + }); - it("jq append test", function() { - jq("

test passes h2

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

/); - }); + it("jq append test", function () { + jq("

test passes h2

").appendTo("body"); + expect(jq("body").html()).toMatch(/

/); + }); - it("window test", function() { - expect(myWindow).toBeDefined(); - }); + it("window test", function () { + expect(myWindow).toBeDefined(); + }); });