chai expect async function to throw
尋找Chai&Tina Brunch Pasta資訊的人也對chai expect async function to throw感到興趣,以下是Chai&Tina Brunch Pasta的靠北餐廳情報,const someFn = async () => throw new Error(`I'm an error!`) } And here's our test setup using Chai / chai-as-promised: const chai = require ...