simonpweller / quotes-api

An easy-to-use API for fetching programming quotes.
0 stars 3 forks source link

Addition of getRandomElement function #4

Closed nibble0101 closed 4 years ago

nibble0101 commented 4 years ago

I have added getRandomElement function. Your feedback is highly appreciated. However whenever i run npm test, i get the error below:

'jest' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Test failed.  See above for more details.

Therefore i haven't run the test you have written.

simonpweller commented 4 years ago

Thanks for the pull request! This looks great and your code passes all the tests.

In terms of running the tests - can I just double check: did you run npm install beforehand? If you initially ran it before I added the automated tests, you might have to run it again so jest gets installed.