README
A PollingWait function or promise to ease asynchronous testing.
Getting Started
Install the module with: npm install polling-wait
var wait = require('polling-wait').wait;
wait({timeoutAfter: 1000, pollEvery: 100}).until(function () {
var actual = client.receiveNextMessage();
assert(actual, 'No message received!');
});
Documentation
(Coming soon)
Examples
(Coming soon)
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
(Nothing yet)
License
Copyright (c) 2015 BenoƮt Nouyrigat
Licensed under the MIT license.