Comparing version 1.2.2 to 1.2.3
@@ -68,15 +68,21 @@ var _puts = require('sys').puts, | ||
typeof module.init != 'function' ? callTestFn(test, args, next) : module.init(options, function(error/* args to pass test functions */){ | ||
if(error) { | ||
return callback(error); | ||
} | ||
try { | ||
var mergeArgs = [0, 0]; | ||
Array.prototype.push.apply(mergeArgs, Array.prototype.slice.call(arguments, 1)); | ||
args.splice.apply(args, mergeArgs); | ||
typeof module.init != 'function' ? callTestFn(test, args, next) : module.init(options, function(error/* args to pass test functions */){ | ||
if(error) { | ||
return callback(error); | ||
} | ||
callTestFn(test, args, next); | ||
}); | ||
var mergeArgs = [0, 0]; | ||
Array.prototype.push.apply(mergeArgs, Array.prototype.slice.call(arguments, 1)); | ||
args.splice.apply(args, mergeArgs); | ||
callTestFn(test, args, next); | ||
}); | ||
} catch(error) { | ||
callback(error); | ||
} | ||
})(0); | ||
@@ -83,0 +89,0 @@ } |
{ | ||
"name":"highkick", | ||
"version":"1.2.2", | ||
"version":"1.2.3", | ||
"description":"Asynchronous, no-style, super simple testing tool.", | ||
@@ -5,0 +5,0 @@ "author":"Azer Koculu <azer@kodfabrik.com>", |
7024
117