From ed267c404e2dbd082a6bad045ca53a9b071d93f5 Mon Sep 17 00:00:00 2001 From: "Lopez, Manuel" Date: Mon, 13 Mar 2017 14:34:42 +0100 Subject: [PATCH] - Update test --- cucumber/cucumber-tests.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cucumber/cucumber-tests.ts b/cucumber/cucumber-tests.ts index 3eb86b223f..19e4824e6f 100644 --- a/cucumber/cucumber-tests.ts +++ b/cucumber/cucumber-tests.ts @@ -9,11 +9,13 @@ function StepSample() { var step = this; var hook = 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();