assert-throwsAn assertion method to check if a sync or async function throws and assert on error properties.assert-throwsassertionthrowsthrowerrortrycatch3.3.0 • Published 4 years ago