From 534263d0b7cbee4646cc8b4c38546102f63c6e3c Mon Sep 17 00:00:00 2001 From: Antranig Basman Date: Tue, 20 Oct 2015 14:44:44 +0100 Subject: [PATCH] Placed our failure handler in the "jqUnit" namespace where it is expected to be overridden - bump to version 1.1.0 --- lib/jqUnit-node.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/jqUnit-node.js b/lib/jqUnit-node.js index d72fca6..2c21f6a 100644 --- a/lib/jqUnit-node.js +++ b/lib/jqUnit-node.js @@ -29,7 +29,7 @@ Error.stackTraceLimit = 100; var QUnit = fluid.registerNamespace("QUnit"); var jqUnit = fluid.registerNamespace("jqUnit"); -jqUnit.nodeFailureHandler = function (args, activity) { // TODO: More graceful overriding with FLUID-5582 +jqUnit.nodeFailureHandler = function (args, activity) { if (QUnit.config.current) { QUnit.ok(false, "Assertion failure (see console.log for expanded message): ".concat(args)); } else { @@ -39,7 +39,7 @@ jqUnit.nodeFailureHandler = function (args, activity) { // TODO: More graceful o // Note that since Infusion has overriden node's global uncaught exception handler, the process will not exit here }; -fluid.pushSoftFailure(jqUnit.nodeFailureHandler); +fluid.failureEvent.addListener(jqUnit.nodeFailureHandler, "jqUnit", "before:fail"); QUnit.load(); diff --git a/package.json b/package.json index 457f9f9..38bf2b1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "node-jqunit", "description": "An XUnit unit testing framework (in the style of JUnit) to node.js, using QUnit as the underlying engine", - "version": "1.0.0", + "version": "1.1.0", "author": "Fluid Project", "homepage": "http://www.fluidproject.org/", "dependencies": {