chai expect async function to throw
尋找Chai&Tina Brunch Pasta資訊的人也對chai expect async function to throw感到興趣,以下是Chai&Tina Brunch Pasta的靠北餐廳情報,2018年5月18日 — expect().to.throw(Error) will only work for sync functions. If you want a similar feature using async functions take a look at chai-as-promised