When runing the following test I expect to recive
fail AssertionError: expected {} to have key 'key'missing keys: 'key'
but insted I get:
Error: timeout of 5000ms exceeded. Ensure the done() callback is being called in this test.
the test:
describe(__filename,function(){
beforeEach(function(done){
App.Test.eraseAndCreateSimulatedDB(done)
})
it('get tempUser by id',function(done){
TempUserDal.getTempUserById(App.Test.tempUser1._id).then(function(tempUser){
console.log('promise resolved')
({}).should.have.keys('key');
done()
},function(err){
done(err)
})
})
It worth mentioning that I can see "promise resolved" in the console.