Comparing version 1.0.2 to 1.1.0-alpha
@@ -17,6 +17,7 @@ // Generated by CoffeeScript 1.9.2 | ||
configure = function(arg) { | ||
var Result, buildDescription, crossCombineResults, describeScenario, exports, getCounts, interpolate, isRunner, lastResult, makeResult, options, resolveResultArray, resolveResultObject; | ||
var Result, buildDescription, configOptions, crossCombineResults, describeScenario, exports, getCounts, interpolate, isRunner, lastResult, makeResult, options, resolveResultArray, resolveResultObject; | ||
exports = arg.exports, options = arg.options; | ||
assert(exports, 'Exports object required'); | ||
assert(options, 'Options object required'); | ||
configOptions = options; | ||
Result = (function() { | ||
@@ -282,3 +283,3 @@ function Result(id1) { | ||
var newContext, ref; | ||
if (!options.sharedContext) { | ||
if (!configOptions.sharedContext) { | ||
newContext = _.extend({}, context, extraContext); | ||
@@ -311,3 +312,3 @@ newContext.updateContext(); | ||
var currentContext, updateContext; | ||
if (options.sharedContext) { | ||
if (configOptions.sharedContext) { | ||
return {}; | ||
@@ -442,3 +443,3 @@ } | ||
var newContext; | ||
if (options.sharedContext) { | ||
if (configOptions.sharedContext) { | ||
return context; | ||
@@ -482,4 +483,7 @@ } | ||
run = function(options, done) { | ||
var bddIt, fail, finish, multipleIt, ref, ref1, testBodyFn, world; | ||
var bddIt, fail, finish, multipleIt, ref, ref1, ref2, testBodyFn, world; | ||
ref = options != null ? options : {}, bddIt = ref.bddIt, multipleIt = ref.multipleIt, world = ref.world; | ||
if (multipleIt == null) { | ||
multipleIt = (ref1 = configOptions.defaults) != null ? ref1.multipleIt : void 0; | ||
} | ||
testBodyFn = function() { | ||
@@ -497,3 +501,3 @@ return promiseBuilder.resolve({ | ||
} else { | ||
ref1 = handlers(done), finish = ref1.finish, fail = ref1.fail; | ||
ref2 = handlers(done), finish = ref2.finish, fail = ref2.fail; | ||
return testBodyFn().then(finish).then(function() { | ||
@@ -500,0 +504,0 @@ return typeof spec.done === "function" ? spec.done() : void 0; |
@@ -8,5 +8,8 @@ // Generated by CoffeeScript 1.9.2 | ||
module.exports = require('./common/gwt')({ | ||
sharedContext: true | ||
sharedContext: true, | ||
defaults: { | ||
multipleIt: true | ||
} | ||
}); | ||
}).call(this); |
{ | ||
"name": "gwt", | ||
"version": "1.0.2", | ||
"version": "1.1.0-alpha", | ||
"description": "Given, when, then", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
35901
658
2