This is a fundamental assertion library following TDD/BDD that can be used in conjunction with any other libraries in order to have superior-quality tests. An assertion i
s any statement that has to be fulfilled, or else an error should be thrown and the test should be stopped. This is a very powerful tool to write easy-to-understand test cases.
It provides the following three interfaces to make test cases more readable and powerful:
Along with these three interfaces, we can use various natural language words. The full list can be found at http://www.chaijs.com/api/bdd/.