Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test that shows that rejectWith promises generates warnings
This test demonstrates that promises are created at configuration time and not when the mock is called. From docs: The 'rejectionHandled' event is emitted whenever a Promise has been rejected and an error handler was attached to it ... later than one turn of the Node.js event loop. ... The 'unhandledRejection' event is emitted whenever a Promise is rejected and no error handler is attached to the promise within a turn of the event loop. https://nodejs.org/api/process.html#process_event_rejectionhandled
- Loading branch information