You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't forget to assign zombie to a variable for use in your features/support/world.js example.
The example:
require('zombie');varWorld=function(callback){this.browser=newzombie.Browser();// this.browser will be available in step definitionsthis.visit=function(url,callback){this.browser.visit(url,callback);};callback(this);// tell Cucumber we're finished and what to use as World (this)};exports.World=World;
Corrected:
but, zombie isn't assigned until you do it yourself:
varzombie=require('zombie');varWorld=function(callback){this.browser=newzombie.Browser();// this.browser will be available in step definitionsthis.visit=function(url,callback){this.browser.visit(url,callback);};callback(this);// tell Cucumber we're finished and what to use as World (this)};exports.World=World;
The text was updated successfully, but these errors were encountered:
Don't forget to assign zombie to a variable for use in your features/support/world.js example.
The example:
Corrected:
but, zombie isn't assigned until you do it yourself:
The text was updated successfully, but these errors were encountered: