X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fspec%2Fjquery.spec.js;h=152f71975751862477465bb16452f25d874338bf;hb=87f71ca01b619b8d613407cb3fcbb91d12d932fe;hp=e5c34e2c209ed7a3bbf52b7ce1cd912e764de036;hpb=594a3bf18969d6cbab5671abf5c5945d6df2aab9;p=mkws-moved-to-github.git diff --git a/test/spec/jquery.spec.js b/test/spec/jquery.spec.js index e5c34e2..152f719 100644 --- a/test/spec/jquery.spec.js +++ b/test/spec/jquery.spec.js @@ -1,32 +1,32 @@ -/* Copyright (c) 2013 IndexData ApS. http://indexdata.com +/* Copyright (c) 2013 Index Data ApS. http://indexdata.com * * jQuery test * */ -describe("jQuery suite simple", function() { - var $ = require('jquery'); +describe("jQuery suite simple", function () { + var $ = require('jQuery'); - it("jQuery append test", function() { - $("body").append("
this is a paragraph
").appendTo("h1"); - expect( $("body").html() ).toMatch(/this is a paragraph/); + it("jQuery append test", function () { + $("body").append("this is a paragraph
").appendTo("h1"); + expect($("body").html()).toMatch(/this is a paragraph/); }); - it("$ append test", function() { + it("$ append test", function () { $("this is a second paragraph
").appendTo("h1"); - expect( $("body").html() ).toMatch(/this is a paragraph/); + expect($("body").html()).toMatch(/this is a paragraph/); }); - it("more jquery tests", function() { + 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/); + 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/); }); });