1.0.0 • Published 10 years ago

uncaughtException v1.0.0

Weekly downloads
20
License
ISC
Repository
github
Last release
10 years ago

uncaughtException

this module is used in mocha test.

it('should throw error xxx throws error', done => {
    uncaughtException((err) => {
      assert(err.message === 'xxx');
      done();
    });
    xxx();
});
1.0.0

10 years ago