Skip to content Skip to sidebar Skip to footer
Showing posts with the label Chai

Test Simple Logger Functions With Full Code Coverage

I'm using Chai, Sinon and Instanbul to test a NodeJS application. Here's the Logger code: i… Read more Test Simple Logger Functions With Full Code Coverage

How To Test For Thrown Error With Chai.should

I'm using Chai.should and I need to test for an exception, but whatever I try, I cannot get it … Read more How To Test For Thrown Error With Chai.should

Running Mocha On The Command Line And Including A File

I’m trying to setup some JS Unit tests using Mocha, and Ideally, I'd like to run this via the c… Read more Running Mocha On The Command Line And Including A File