Chai Assert throws

  • @2022-02-18
  • To assert that an expression throws an error, use assert.throws(). Origin
  • Chai assertion has alias throw, Throw to throws. assert.throw and assert.Throw will actually call assert.throws. So just use throws.
  • Origin