Top "Chai-as-promised" questions

Chai as Promised is an extension for the Chai assertion library which adds the capability for assertions about promises.

Verify that an exception is thrown using Mocha / Chai and async/await

I'm struggling to work out the best way to verify that a promise is rejected in a Mocha test while …

node.js async-await mocha chai chai-as-promised
Testing rejected promise in Mocha/Chai

I have a class that rejects a promise: Sync.prototype.doCall = function(verb, method, data) { var self = this; self.client = …

javascript promise mocha bluebird chai-as-promised
How to unit test a method which connects to mongo, without actually connecting to mongo?

I'm trying to write a test to test a method that connects to mongo, but I don't actually want to …

node.js mongodb mocha chai chai-as-promised