Using Chai expect throw not catching promise rejection
问题 I have searched all around how to solve this, but all solutions I tested don't work in my case. I have a function that returns a promise, which I'm trying to test using Mocha and Chai. I'm fuzzing the parameter so the function always returns: reject('Rejection reason') Here's the test I'm trying to run: describe('fuzzing tokenization with 1000 invalid values', () => { it('should throw an error - invalid value', async () => { for(var i=0; i <= 1000; i++){ var req = { body: { value: fuzzer