uncaughtException
this module is used in mocha test.
it('should throw error xxx throws error', done => {
uncaughtException((err) => {
assert(err.message === 'xxx');
done();
});
xxx();
});
this module is used in mocha test.
it('should throw error xxx throws error', done => {
uncaughtException((err) => {
assert(err.message === 'xxx');
done();
});
xxx();
});
npm i uncaughtException
6
1.0.0
ISC