0.1.1 • Published 9 years ago

polling-wait v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

polling-wait Build Status

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.