assert-async

1.0.0 • Public • Published

assert-async

Build Status Coverage Status

Throws an exception if your callback is called synchronusly by a function. The intention is to catch coding errors during development and testing, helping you avoid starving the event queue.

Usage

'use strict';
 
var assertAsync = require('assert-async');
 
var internalAsyncLibrary = require('./lib/foo');
 
assertAsync(internalAsyncLibrary, function (err, res) {
    // ...
});

Installation

npm install assert-async --save

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i assert-async

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • omsmith