I'm having trouble running async tests with mocha.
Below is the snippet of my code:
describe('Brightcove Wrapper',function(){
describe("#init()", function() {
it("Should inject the brightcove javascript", function(callback){
BCL.init(function(){
//expect(window).to.have.property('brightcove');
console.log(this) //window object
callback();
console.log('this message also appears in the log')
});
});
});
})
Although both logs display, done() function is not being executed.