Comparing version 1.3.4 to 1.4.0
@@ -80,3 +80,3 @@ var colors = require('colors'); | ||
if (error) { | ||
return callback(error); | ||
throw error; | ||
} | ||
@@ -161,7 +161,11 @@ | ||
if(options.ordered){ | ||
call(next); | ||
} else { | ||
call(); | ||
next(); | ||
try { | ||
if(options.ordered){ | ||
call(next); | ||
} else { | ||
call(); | ||
next(); | ||
} | ||
} catch(executionError) { | ||
callback(executionError); | ||
} | ||
@@ -168,0 +172,0 @@ |
{ | ||
"name":"highkick", | ||
"version":"1.3.4", | ||
"version":"1.4.0", | ||
"description":"Asynchronous, no-style, super simple testing tool.", | ||
@@ -5,0 +5,0 @@ "author":"Azer Koculu <azer@kodfabrik.com>", |
@@ -18,2 +18,10 @@ var assert = require('assert'), | ||
function testInitFail(pi, callback){ | ||
highkick({ module:require('./init_fail'), 'silent':0, 'name':'init_fail' }, function(error, result){ | ||
console.log('@', error); | ||
assert.ok(error); | ||
callback(); | ||
}); | ||
} | ||
function testSimple(pi, callback){ | ||
@@ -43,2 +51,4 @@ callback(); | ||
function testAsync1(pi, callback){ | ||
@@ -92,2 +102,3 @@ assert.equal(++counter, 1); | ||
'init': init, | ||
'testInitFail': testInitFail, | ||
'testSimple': testSimple, | ||
@@ -94,0 +105,0 @@ 'testSimpleAsync': testSimpleAsync, |
var highkick = require('../lib/highkick'), | ||
puts = require('sys').puts; | ||
mkdir = require('fs').mkdir; | ||
highkick({ 'name':' basic', 'module':require('./main') }, function(error, result){ | ||
if(error) throw error; | ||
}); | ||
function clean(callback){ | ||
mkdir('tmp', 0755, function(){ | ||
callback(); | ||
}); | ||
} | ||
function run(){ | ||
clean(function(){ | ||
highkick({ 'name':' basic', 'module':require('./main') }, function(error, result){ | ||
if(error) throw error; | ||
}); | ||
}); | ||
} | ||
run(); |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
12055
10
300
1