title: Can't figure out why mocha test is passing
body: <p>I'm learning to do testing in javascript and I have this mocha test that I'm running</p>
  
  <pre><code>describe("Fetches Coordinates", function() {
          it("searches the database for coordinates", function() {
              var boundary = routes.setBoundries(20, 80, 20, 80)
              routes.searchCoords(boundary, function(err,data) {
                  expect(data.length).to.equal(100)
              });
          });
      });
  </code></pre>
  
  <p>And this is the method that it is using</p>
  
  <pre><code>exports.searchCoords = function searchCoords(boundary, callback){
       models.sequelize.query('SELECT "data".longitude, "data".latitude, "data".ipscount FROM ('
                  + ' SELECT * FROM "DataPoints" as "data"'
                  + ' WHERE "data".longitude BETWEEN '
                  + boundary.xlowerbound + ' and ' + boundary.xupperbound + ') data'
                  + ' WHERE "data".latitude BETWEEN '
                  + boundary.ylowerbound + ' and '
                  + boundary.yupperbound + ';', { type: models.sequelize.QueryTypes.SELECT}).then(function(data) {
                      callback(data);
                  });                 
  }
  </code></pre>
  
  <p>When I run the test it seems like Mocha just skips over the callback and passes. I can't seem to get this right. What's the correct syntax?</p>