assert-async
v1.0.0
Published
Throw an exception if your callback is called synchronously
Downloads
1
Readme
assert-async
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