Hi Viktor. First of all awesome tutorial. Can you please give an example of a post request? I am working on a script which follows the same method as yours but I need to use a post request. I need to add new data. Appreciate it
it says: 'mocha' is not recognized as an internal or external command, operable program or batch file. i have also added it to the PATH in environment variables . Please help.
9 responses to “Tutorial: Write a simple API test with Mocha in JavaScript”
Elegant tutorial. Easy to listen to and understand. Great work!
Hi Viktor. First of all awesome tutorial. Can you please give an example of a post request? I am working on a script which follows the same method as yours but I need to use a post request. I need to add new data. Appreciate it
This works fine, but sometimes the test fails for no reason, no change to code, or anything. Not sure why.
Hey nice one and thanks for sharing. Though i think u didn't need to require should since u didnt use it
Pretty nice explanation. I will really appreciate if you can share CRUD operations using MongoDB. Will Look forward for that.
hi vicktor..this video was very helpful but ..could you please give example for POST method as well…im unable to get it..Thank you.
it says:
'mocha' is not recognized as an internal or external command,
operable program or batch file.
i have also added it to the PATH in environment variables . Please help.
Hey Viktor, good stuff, to improve your work, you should spend a little more time explaining the pasted code. What's 'describe'? What's 'it'?
Cheers
Nice video buddy, your voice sounds cool, good luck hope you will make more 🙂