must-call

1.0.0 • Public • Published

must-call

npm version Build Status Coverage Status

must-call is an assertion library for async test. This method is inspired from node.js project test/common.js.

const mustCall = require('must-call');
 
someCallback(mustCall(() => {
  // when callback does not called at the end of the process, 
  // throw exception.
}));
 
somePromiseTest().then(mustCall(() => {
  // when async test does not resolved at the end of the process, 
  // throw exception.
}));

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i must-call

Weekly Downloads

11

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yosuke-furukawa