From 1f95b9ff73a1b7f2e5ec46962a9420849f3d3f27 Mon Sep 17 00:00:00 2001 From: Denis Gorbachev Date: Tue, 24 Dec 2013 16:23:39 +0300 Subject: [PATCH] Update webdriverjs.with.mocha.js See https://github.com/camme/webdriverjs/issues/120#issuecomment-30320853 --- examples/webdriverjs.with.mocha.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +});