From 036929cd03efd80a679697017b117b7a077db221 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 7 Jan 2015 12:13:42 +0000 Subject: [PATCH] switch to newer npm module "jquery", MKWS-345 This fix the warnings: deprecated jQuery@1.7.4 --- test/package.json | 4 ++-- test/spec/jquery.spec.js | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) 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"); -- 1.7.10.4