Comparing version 1.0.1 to 1.0.2
@@ -51,9 +51,10 @@ // Load modules | ||
var count = 0; | ||
var errored = false; | ||
var done = function (err) { | ||
if (callback) { | ||
if (!errored) { | ||
if (err) { | ||
errored = true; | ||
callback(err); | ||
callback = null; | ||
} | ||
@@ -60,0 +61,0 @@ else { |
{ | ||
"name": "items", | ||
"description": "Bare minimum async methods", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": "git://github.com/hapijs/items", | ||
@@ -6,0 +6,0 @@ "main": "index", |
@@ -150,3 +150,8 @@ // Load modules | ||
expect(called).to.deep.equal([1]); | ||
done(); | ||
setTimeout(function () { | ||
expect(called).to.deep.equal([1, 4, 2, 5]); | ||
done(); | ||
}, 6); | ||
}); | ||
@@ -153,0 +158,0 @@ }); |
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
9472
167