Comparing version 0.0.12 to 0.0.13
@@ -351,7 +351,16 @@ // Generated by CoffeeScript 1.9.1 | ||
resultTo: function(result) { | ||
assert(result, 'Result must be a promiseBuilder. Create one with bdd.result()'); | ||
return bdd(descriptionBuilder, promiseBuilder.then(function(context) { | ||
var ref, results; | ||
var lastResultValue, r, ref, results, rkey; | ||
results = (ref = crossCombineResults.getFromContext(context)) != null ? ref : {}; | ||
result.setInContext(results, lastResult.getFromContext(context)); | ||
lastResultValue = lastResult.getFromContext(context); | ||
if (result instanceof Result) { | ||
assert(result instanceof Result, 'Result must be created with bdd.result()'); | ||
result.setInContext(results, lastResultValue); | ||
} else { | ||
for (rkey in result) { | ||
r = result[rkey]; | ||
assert(r instanceof Result, 'Subresult isnt bdd.result()'); | ||
r.setInContext(results, lastResultValue[rkey]); | ||
} | ||
} | ||
crossCombineResults.setInContext(context, results); | ||
@@ -358,0 +367,0 @@ return context; |
{ | ||
"name": "gwt", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"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
15237
418