Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "fastq", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Fast, in memory work queue", | ||
@@ -5,0 +5,0 @@ "main": "queue.js", |
@@ -74,3 +74,3 @@ 'use strict' | ||
current.value = value | ||
current.callback = done | ||
current.callback = done || noop | ||
@@ -98,3 +98,3 @@ if (_running === self.concurrency || self.paused) { | ||
current.value = value | ||
current.callback = done | ||
current.callback = done || noop | ||
@@ -101,0 +101,0 @@ if (_running === self.concurrency || self.paused) { |
26
test.js
@@ -422,1 +422,27 @@ 'use strict' | ||
}) | ||
test('push without cb', function (t) { | ||
t.plan(1) | ||
var queue = buildQueue(worker, 1) | ||
queue.push(42) | ||
function worker (arg, cb) { | ||
t.equal(arg, 42) | ||
cb() | ||
} | ||
}) | ||
test('unshift without cb', function (t) { | ||
t.plan(1) | ||
var queue = buildQueue(worker, 1) | ||
queue.unshift(42) | ||
function worker (arg, cb) { | ||
t.equal(arg, 42) | ||
cb() | ||
} | ||
}) |
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
19851
533