title: Unhandled rejection AssertionError With Mocha
body: <p>I am writing a Mocha test for a module I created in express. It gives me a error I dont understand how to fix. </p>
  
  <p>The test:</p>
  
  <pre><code>  describe('userController', function() {
      describe('post -&gt; /create', function() {
        it('A user should be created', () =&gt; {
            var testRequest = {
                body: {
                    password:"pass1",
                    email:"test@me.com",
                    username:"user1",
                }
            };
            database.registerUser(testRequest, (callBack) =&gt; {
                new User({email:"test@me.com"})
                .fetch()
                .then((model) =&gt; {
                   assert.equal(model.get('password'), testRequest.body.password);
                })
                .catch((err) =&gt; {
                  assert(false);
                });
            });
        });
      });
    });
  </code></pre>
  
  <p>The Error: </p>
  
  <pre><code>Unhandled rejection AssertionError: false == true
      at User.fetch.then.catch (/home/shanedrafahl/code/MyRentalServer/myRental/test/test.js:72:17)
      at tryCatcher (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/promise.js:512:31)
      at Promise._settlePromise (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/promise.js:569:18)
      at Promise._settlePromise0 (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/promise.js:614:10)
      at Promise._settlePromises (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/promise.js:689:18)
      at Async._drainQueue (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/async.js:133:16)
      at Async._drainQueues (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/async.js:143:10)
      at Immediate.Async.drainQueues (/home/shanedrafahl/code/MyRentalServer/myRental/node_modules/bluebird/js/release/async.js:17:14)
      at runCallback (timers.js:672:20)
      at tryOnImmediate (timers.js:645:5)
      at processImmediate [as _immediateCallback] (timers.js:617:5)
  </code></pre>
  
  <p>If anybody could tell me or show me why it is giving me this error and how to fix it I would appreciate it.</p>