Comparing version 3.3.1 to 3.3.2
{ | ||
"name": "kgo", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "Flow control the super easy way", | ||
@@ -5,0 +5,0 @@ "main": "kgo.js", |
@@ -106,8 +106,8 @@ var symbols = require('./symbols'), | ||
if(hasError){ | ||
args.push(undefined); | ||
if(ignore){ | ||
continue; | ||
} | ||
if(ignore){ | ||
if(hasError){ | ||
args.push(undefined); | ||
continue; | ||
@@ -114,0 +114,0 @@ } |
@@ -551,2 +551,28 @@ var test = require('tape'), | ||
}); | ||
}); | ||
test('error steps with a !dependency dont mess with argument length when error is async', function(t){ | ||
t.plan(1); | ||
kgo | ||
({foo: 'foo'}) | ||
('bar', function(done){ | ||
doAsync(done, 'barError'); | ||
}) | ||
(['*bar', '!foo'], function(){ | ||
t.equal(arguments.length, 2, 'correct number of arguments'); | ||
}); | ||
}); | ||
test('error steps with a !dependency dont mess with argument length when error is synchronous', function(t){ | ||
t.plan(1); | ||
kgo | ||
({foo: 'foo'}) | ||
('bar', function(done){ | ||
done('barError'); | ||
}) | ||
(['*', '!foo'], function(){ | ||
t.equal(arguments.length, 2, 'correct number of arguments'); | ||
}); | ||
}); |
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
26657
732