Comparing version 0.0.2 to 0.0.3
27
index.js
@@ -163,6 +163,16 @@ 'use strict'; | ||
} | ||
var run = false; | ||
// start the timer | ||
var running = setTimeout(function() | ||
{ | ||
var message = 'Package tests did not call back'; | ||
if (callback) | ||
{ | ||
return callback(message); | ||
} | ||
log.error(message); | ||
}, timeout); | ||
// run the tests | ||
async.series(tests, function(error, result) | ||
{ | ||
run = true; | ||
clearTimeout(running); | ||
if (callback) | ||
@@ -173,15 +183,2 @@ { | ||
}); | ||
// give it time | ||
setTimeout(function() | ||
{ | ||
if (!run) | ||
{ | ||
var message = 'Package tests did not call back'; | ||
if (callback) | ||
{ | ||
return callback(message); | ||
} | ||
log.error(message); | ||
} | ||
}, timeout); | ||
} | ||
@@ -188,0 +185,0 @@ |
{ | ||
"name": "testing", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Simple testing framework.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/testing", |
@@ -100,3 +100,3 @@ # testing | ||
#### testing.assertEquals(expected, actual, [message], [callback]) | ||
#### testing.assertEquals(actual, expected, [message], [callback]) | ||
@@ -103,0 +103,0 @@ Check that the given values are equal. Uses weak equality (==). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10402
198