given-when-then
Advanced tools
Comparing version 1.3.2-alpha to 1.3.3-alpha
@@ -501,7 +501,17 @@ // Generated by CoffeeScript 1.9.2 | ||
} | ||
chains[chains.length - 1].push({ | ||
thenFn: function() { | ||
return typeof spec.done === "function" ? spec.done() : void 0; | ||
} | ||
}); | ||
if (chains.length) { | ||
chains[chains.length - 1].push({ | ||
thenFn: function() { | ||
return typeof spec.done === "function" ? spec.done() : void 0; | ||
} | ||
}); | ||
} else { | ||
chains = chains.concat([ | ||
{ | ||
thenFn: function() { | ||
return typeof spec.done === "function" ? spec.done() : void 0; | ||
} | ||
} | ||
]); | ||
} | ||
return chains.forEach(function(chain, chainsIndex) { | ||
@@ -508,0 +518,0 @@ var ref1, ref2; |
{ | ||
"name": "given-when-then", | ||
"version": "1.3.2-alpha", | ||
"version": "1.3.3-alpha", | ||
"description": "Given, when, then", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
42858
937