Using Chai expectations instead of console.assert