From: Wolfram Schneider Date: Wed, 7 Jan 2015 12:13:42 +0000 (+0000) Subject: switch to newer npm module "jquery", MKWS-345 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=036929cd03efd80a679697017b117b7a077db221;p=mkws-moved-to-github.git switch to newer npm module "jquery", MKWS-345 This fix the warnings: deprecated jQuery@1.7.4 --- diff --git a/test/package.json b/test/package.json index 5c29d2d..98f19a9 100644 --- a/test/package.json +++ b/test/package.json @@ -10,9 +10,9 @@ "email": "wosch@indexdata.com" }], "devDependencies": { - "jQuery": "*", + "jquery": "*", + "jsdom": "*", "xmlhttprequest": "*", - "jsdom": "<= 0.11.1", "cssstyle": "<= 0.2.14", "request": "*", "jasmine-reporters": "<= 0.4.1", 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");