Day 3 - Asynchronous Tests - JavaScript Testing For Beginners

preview_player
Показать описание
JavaScript Testing For Beginners - Asynchronous Tests

In today's lesson you'll learn how to test asynchronous JavaScript functions. These can sometimes be tricky to test but by the end of the lesson you'll be writing asynchronous testing code like a pro.

You'll learn about how to write asynchronous JavaScript tests using mocha's "done" callback. You'll find out about some gotchas which will trip you up if you're not careful. You'll also learn how to correctly test functions which return Promises.

Want to get started with unit testing and JavaScript? Not signed up to this course? Get started with my free 7-day course here:

Follow me online:

Subscribe to my channel:
Рекомендации по теме
Комментарии
Автор

great video, but I'm not sure how the first test passed for day 3 since it was created with no return value? the test should have failed?

thebuzz
visit shbcf.ru