Skip to content

A PollingWait function or promise to ease asynchronous testing.

License

Notifications You must be signed in to change notification settings

bnouyrigat/polling-wait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A PollingWait function or promise to ease asynchronous testing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published