Just what is the Chai Assertion Library?

From their website: Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.

Once you see the examples you start to get the idea:



Any programmer who has spent a considerable amount of time tracking down a code error, only to realize that foo was a string when it should have been an integer can understand why an assertion library will save them time.

Chai takes the idea a step further by integrating plugins such as selenium-webdriver.

Read more about Chai on their website

News Reporter
Hi there. I'm part of the staff here at onkea eLearning company working hard to create some tutorials and answer your support questions.

Leave a Reply

Your email address will not be published. Required fields are marked *