title: Was not able to run nightwatch.js tests with mocha "Ensure the done() callback is being called"
body: <p>Nearly every single example i've found on web isn't well explained how mocha should be implemented and used with nightwatchJS.</p>
  
  <p>Whatever i do i am not able to avoid that error message, even if i follow all steps from <a href="http://nightwatchjs.org/guide#using-mocha" rel="nofollow noreferrer">official nightwatch how-to use mocha</a>
  Only thing that i was able to do is to at least make google chrome browser open and thats it.</p>
  
  <p>Here is the code i am trying to run </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var nightwatch = require('nightwatch');
  
  describe('Google', function() {
  
      var client = nightwatch.initClient({
          // Pass here options from nightwatch.json
  
          // selenium logs; change it to true if you want to see them in console
          silent : false,
  
          desiredCapabilities: {
              browserName: "chrome",
              javascriptEnabled: true,
              acceptSslCerts: true
          }
      });
  
      var browser = client.api();
  
      // Mocha timeout
      this.timeout(15000);
  
      it('Demo test Google', function (done) {
          browser
              .url('http://www.google.com')
              .waitForElementVisible('body', 1000)
              .setValue('input[type=text]', 'nightwatch')
              .waitForElementVisible('button[name=btnG]', 1000)
              .click('button[name=btnG]')
              .pause(1000)
              .assert.containsText('#main', 'Night Watch')
              .end();
  
  
          client.start(done);
      });
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>And this is the error message that always happen to me after the browser pop up:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>INFO Request: POST /wd/hub/session 
   - data:  {"desiredCapabilities":{"browserName":"firefox","javascriptEnabled":true,"acceptSslCerts":true,"platform":"ANY"}} 
   - headers:  {"Content-Type":"application/json; charset=utf-8","Content-Length":113}
      1) Demo test Google
  
  
    0 passing (15s)
    1 failing
  
    1) Google Demo test Google:
       Error: timeout of 15000ms exceeded. Ensure the done() callback is being called in this test.</code></pre>
  </div>
  </div>
  </p>