1.0.0 • Published 8 years ago

uncaughtException v1.0.0

Weekly downloads
20
License
ISC
Repository
github
Last release
8 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

8 years ago