Truffle allows test cases written in both JavaScript and Solidity. JavaScript tests follow Mocha as a testing framework and Chai for assertions. For Solidity-based test cases, Truffle provides a default assertion library for you to use. Let's look into each method and write some test cases.