Tutorial: Write a simple API test with Mocha in JavaScript

preview_player
Показать описание
Source code on github:

Рекомендации по теме
Комментарии
Автор

Thanks for the explanation! Greetings from Coplombia :D

LatinRemixes
Автор

The 720p is killing me! But, I watch through this because it's a great demo. I really appreciate that you do not `require` an app that you have code for. I think this is the only example of using node to test a web service you didn't write. Thank you.

RichardBronosky
Автор

It`s video really helps me to configure my workspace for testing API by 10 minute. I will continue to learn this method for testing API. Thanks, Victor, for you work!

oleksandr.yatsiuk
Автор

Elegant tutorial. Easy to listen to and understand. Great work!

tcjusttc
Автор

Nice video buddy, your voice sounds cool, good luck hope you will make more :)

toshirobg
Автор

Thanks a lot for that, I got it, everything was explained clearly!!!

name-roiv
Автор

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.

adityachary
Автор

Tack mycket! In future videos please reduce your screen resolution before recording.

SteveGriffith-ProfssorStv
Автор

I am getting pending in result. any idea

mangatjass
Автор

Hey nice one and thanks for sharing. Though i think u didn't need to require should since u didnt use it

jakallergis
Автор

This works fine, but sometimes the test fails for no reason, no change to code, or anything. Not sure why.

marias
Автор

How to use a client certificate for authenticating an API with mocha?

sathishkumart
Автор

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.

NiyatiShah
Автор

HI victor,
can you help how to create page object for any API
ex. search API which accepts arguments

pravinpatilish
Автор

Pretty nice explanation. I will really appreciate if you can share CRUD operations using MongoDB. Will Look forward for that.

SawanKumar-erhn
Автор

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

souravchatterjee
Автор

Well explained, can't you make a video using chai-http library instead of installing request separately, just a QUERY!!

SwatFundazzz
Автор

Thank your sharing but i got error " Uncaught TypeError: Cannot read property 'statusCode' of undefined". can you help?

tangmylinh
Автор

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

gxvigo
Автор

It would be helpful if you can enlarge your screen next time. It was hard to see what was happening during the terminal process. Good stuff!

atlasmaxima