uncaughtException

1.0.0 • Public • Published

uncaughtException

this module is used in mocha test.

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i uncaughtException

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • taojie