Unit tests are based on Hardhat's version of the Chai assertion library. Each contract has its own testing script.
Run all tests:
npx hardhat testor from the contracts directory run
yarn testOnly run tests in a given file:
npx hardhat test test/consent.js