1.0.0 • Published 10 years ago

assert-async v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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