This package lets you fetch data contents from multiple URLs.
There are two functions only:
Section 1 (getJSONRequestData)
This function returns resolved or rejected promise depends on the URL data
Section 2 (requestMultipleUrls)
This function returns promise contains the list of contents for each URL.
i.e. an object with property pass: true represents the data type is valid and pass: false is invalid data type
i.e. an object with property data has either error or resolved data depends on the property pass
Testing The above functions are tested using jest.
To run these tests, first install the dependencies with
npm install
Then trigger the test suite with:
npm test