Skip to content

sailabtest/fetch-multiple-urls-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published