This should fix the issue: MKWS is currently incompatible with nodejs 4.x, MKWS-415
The core issue is here is that the newer node.js is incompatible with many
older modules, in part of jsdom which depends on contextify
"email": "wosch@indexdata.com"
}],
"devDependencies": {
- "jquery": "*",
- "jsdom": "3.*",
"xmlhttprequest": "*",
"cssstyle": "*",
"request": "*",
--- /dev/null
+/* 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("<h1>test passes h1</h1>");
+ expect($("body").html()).toMatch(/<h1>/);
+ $("<p>this is a paragraph</p>").appendTo("h1");
+ expect($("body").html()).toMatch(/this is a paragraph/);
+ });
+
+ it("$ append test", function () {
+ $("<h2>test passes h2</h2>").appendTo("body");
+ expect($("body").html()).toMatch(/<h2>/);
+
+ $("<p>this is a second paragraph</p>").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/);
+ });
+});
+++ /dev/null
-/* 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("<h1>test passes h1</h1>");
- expect($("body").html()).toMatch(/<h1>/);
- $("<p>this is a paragraph</p>").appendTo("h1");
- expect($("body").html()).toMatch(/this is a paragraph/);
- });
-
- it("$ append test", function () {
- $("<h2>test passes h2</h2>").appendTo("body");
- expect($("body").html()).toMatch(/<h2>/);
-
- $("<p>this is a second paragraph</p>").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/);
- });
-});