Conditional Steps
Stairs#step(title:String, exclude:Boolean, fn:Function)
Conditionally adds a step.
s.step('query api', options.skipQuery, function ($, next) {
http.get($.url, function (res) {
$.body = '';
res.on('data', function (chunk) { $.body = $.body + chunk; });
res.on('end', next);
res.on('error', next);
});
});
The "query api" step will not be added if options.skipQuery is true.