Skip to content

Commit

Permalink
Removed callback in World - change in latest Cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
chefArchitect committed Nov 12, 2015
1 parent e4023c9 commit 4e5c545
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions lib/cucumber/World.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@
* APIs world module
*/


/*
* World Attributes
*/
function World(callback) {

/*
* World Attributes
*/
this.Api = require('../api/Api');

module.exports = function World(callback) {


this.World = function World(callback) {

/*
* World Attributes
*/
this.Api = require('../api/Api');
// done
if (typeof callback === 'function')
callback();
};




// tell Cucumber we're finished and to use 'this' as the world instance
callback();
};

module.exports = function() {
this.World = World;
};

0 comments on commit 4e5c545

Please sign in to comment.