given-when-then
Advanced tools
Comparing version 1.3.0-alpha to 1.3.1-alpha
@@ -115,2 +115,9 @@ // Generated by CoffeeScript 1.9.2 | ||
}, | ||
call: function() { | ||
var ref; | ||
return (ref = describeScenario(spec(), { | ||
only: only, | ||
counts: counts | ||
})).call.apply(ref, arguments); | ||
}, | ||
verifySpecHasBeenCovered: function() { | ||
@@ -153,3 +160,4 @@ return it('Verify that all descriptions in the specification have been covered', function() { | ||
WHEN: Object.keys(spec.WHEN || {}), | ||
TAP: Object.keys(spec.TAP || {}) | ||
TAP: Object.keys(spec.TAP || {}), | ||
CALL: Object.keys(spec.TAP || {}) | ||
}; | ||
@@ -199,2 +207,11 @@ counts = { | ||
}, | ||
CALL: { | ||
called: function(description) { | ||
var base; | ||
if ((base = counts.TAP)[description] == null) { | ||
base[description] = 0; | ||
} | ||
return counts.TAP[description]++; | ||
} | ||
}, | ||
getUncovered: function() { | ||
@@ -381,5 +398,6 @@ return { | ||
return chains.forEach(function(chain, chainsIndex) { | ||
return bddIt("" + (_.find(chain, function(c) { | ||
var ref1, ref2; | ||
return bddIt("" + ((ref1 = (ref2 = _.find(chain, function(c) { | ||
return c.description; | ||
}).description), function(done) { | ||
})) != null ? ref2.description : void 0) != null ? ref1 : ''), function(done) { | ||
chain.forEach(function(arg3) { | ||
@@ -386,0 +404,0 @@ var thenFn; |
{ | ||
"name": "given-when-then", | ||
"version": "1.3.0-alpha", | ||
"version": "1.3.1-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
40529
810