Comparing version 0.0.29 to 0.0.30
@@ -462,5 +462,7 @@ // Generated by CoffeeScript 1.9.2 | ||
}; | ||
bdd = function(descriptionBuilder, promiseBuilder) { | ||
var run; | ||
bdd = function(descriptionBuilder, promiseBuilder, options) { | ||
var run, skippedUntilHere; | ||
assert(options, 'Must call bdd with options'); | ||
assert(promiseBuilder, 'bdd required promiseBuilder'); | ||
skippedUntilHere = options.skippedUntilHere; | ||
run = function(options, done) { | ||
@@ -490,2 +492,3 @@ var bddIt, fail, finish, multipleIt, ref, ref1, testBodyFn; | ||
descriptionBuilder: descriptionBuilder, | ||
skippedUntilHere: skippedUntilHere, | ||
run: function(cb) { | ||
@@ -514,3 +517,3 @@ return run({}, cb); | ||
} | ||
})); | ||
}), options); | ||
}, | ||
@@ -528,3 +531,3 @@ given: function() { | ||
} | ||
})); | ||
}), options); | ||
}, | ||
@@ -542,3 +545,3 @@ when: function() { | ||
} | ||
})); | ||
}), options); | ||
}, | ||
@@ -556,3 +559,3 @@ then: function() { | ||
} | ||
})); | ||
}), options); | ||
}, | ||
@@ -567,3 +570,3 @@ tap: function() { | ||
} | ||
})); | ||
}), options); | ||
}, | ||
@@ -573,2 +576,5 @@ combine: function(rightBdd) { | ||
assert(rightBdd, 'right bdd not defined'); | ||
if (rightBdd.skippedUntilHere) { | ||
return rightBdd; | ||
} | ||
newDescriptionBuilder = descriptionBuilder.combine(rightBdd.descriptionBuilder); | ||
@@ -578,2 +584,7 @@ return bdd(newDescriptionBuilder, promiseBuilder.combine({ | ||
promiseBuilder: rightBdd.promiseBuilder | ||
}), options); | ||
}, | ||
skipUntilHere: function() { | ||
return bdd(buildDescription(), promiseBuilderFactory(), _.extend({}, options, { | ||
skippedUntilHere: true | ||
})); | ||
@@ -596,3 +607,3 @@ }, | ||
}; | ||
return bdd(buildDescription(), promiseBuilderFactory()); | ||
return bdd(buildDescription(), promiseBuilderFactory(), {}); | ||
}; | ||
@@ -599,0 +610,0 @@ |
{ | ||
"name": "gwt", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"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
32529
586