mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
- Update test
This commit is contained in:
@@ -9,11 +9,13 @@ function StepSample() {
|
||||
var step = <cucumber.StepDefinitions>this;
|
||||
var hook = <cucumber.Hooks>this;
|
||||
|
||||
hook.setWorldConstructor(function() {
|
||||
hook.setWorldConstructor(function({attach, parameters}) {
|
||||
this.attach = attach;
|
||||
this.parameters = parameters;
|
||||
this.visit = function(url: string, callback: Callback) {
|
||||
callback(null, 'pending');
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
hook.Before(function(scenario: HookScenario, callback: Callback){
|
||||
scenario.isFailed() && callback.pending();
|
||||
|
||||
Reference in New Issue
Block a user