diff --git a/examples/webdriverjs.with.mocha.js b/examples/webdriverjs.with.mocha.js index bfb58738a67..d67e8590908 100644 --- a/examples/webdriverjs.with.mocha.js +++ b/examples/webdriverjs.with.mocha.js @@ -6,9 +6,9 @@ describe('my webdriverjs tests', function(){ this.timeout(99999999); var client = {}; - before(function(){ + before(function(done){ client = webdriverjs.remote({ desiredCapabilities: {browserName: 'phantomjs'} }); - client.init(); + client.init(done); }); it('Github test',function(done) { @@ -33,4 +33,4 @@ describe('my webdriverjs tests', function(){ after(function(done) { client.end(done); }); -}); \ No newline at end of file +});