1.0.2 • Published 9 years ago
async-testing-promises v1.0.2
Asynchronous-testing-with-promises
Testing asynchronous functions is easier if promised are used and this script tries to prove that. #Run I run the script with automocha library - https://github.com/toastynerd/automocha but you can use Mocha or other similar library #Files
test - the test script itself
get_data - the asynchronous function, that is about to be tested #Dependencies -Bluebird - if you are running Node.js version 0.12, then you can run the test omitting the Bluebird dependency. The rest of code remains the same.
-Scrape-url - used to fetch the data
-Async - providing vital support in the control flow