Course: Unit Testing in JavaScript
duration: 12 hours |
Language: English (US) |
access duration: 90 days |
Incompany available
Details
In this course you’ll learn the importance of testing on software development paradigms, the support testing provided, and the assertion libraries available in JavaScript. You will learn to use the Node.js environment on your local machine and use the NPM package manager to install Mocha and Unit.js. This course also examines the various assertions that Unit.js offers to test simple data types, such as Booleans, numbers, and strings. You will learn how to test more complex data types, including functions and arrays, and to test the objects. You will learn how to use the Mocha testing framework and how to examine the assertion libraries Should.js and Must.js, which extend the base object prototype in Javascript, to write assertions for every object by using a very intuitive and easy-to-read style. You will examine specific testing environments using the Mocha before and beforeEach hooks. You will then learn how to tear down these test environments, after the completion of the tests, by using the after and afterEach hooks
Next, you will explore the Chai assertion framework and SinonJS. The Chai network is an assertion library available in JavaScript. You will learn how to install and set up the Chai assertion library on your computer, and learn to use two kinds of application programming interfaces (APIs) that Chai offers for assertions. Finally, you will explore the Sinon library and the use of fakes, spies, stubs, and mocks in Sinon.
Result
After completing this course, you are ready to use unit testing in JavaScript in your daily tasks.
Prerequisites
You have experience with JavaScript.
Target audience
Software Developer, Web Developer, Tester
Content
Unit Testing in JavaScript
Unit Testing in JavaScript: Mocha & Unit.js
This course uses the Mocha testing framework and the Unit.js assertion library to unit test your JavaScript code. You will write unit tests to test numeric values, strings, objects, arrays, functions and exceptions using Unit.js.
Unit Testing in JavaScript: Should.js & Must.js
This course shows you how you can use the Mocha testing framework along with Should.js and Must.js assertion libraries to test code using a chained assertion style. You will write unit tests to test numbers, strings, truthy and falsy values, objects, arrays and promises in JavaScript.
Unit Testing in JavaScript: Exploring & Configuring the Mocha Testing Framework
This course explores the different features available in Mocha such as before and after hooks, asynchronous operations using promises and async/await, configuring different Mocha reporters, and running Mocha on the browser.
Unit Testing in JavaScript: Mocha & Chai
This course gets you started with the Chai assertion framework
- and the assert, should, and expect APIs in Chai for test-driven
- development and behavior-driven development. You will use the
- classic assertion API as well as the Should and Expect API in Chai
- to test numbers, booleans, strings, objects and object properties,
- and arrays in Chai.
Unit Testing in JavaScript: SinonJS
This course explores the use of fakes, spies, stubs, and mocks
- in Sinon and also the use of fake timers and sandboxes to write
- unit tests. You will configure fakes and spies with behavior, you
- will set up the right expectations for your mocks and you will
- control time using fake timers for asynchronous operations which
- use promises in JavaScript.
Course options
We offer several optional training products to enhance your learning experience. If you are planning to use our training course in preperation for an official exam then whe highly recommend using these optional training products to ensure an optimal learning experience. Sometimes there is only a practice exam or/and practice lab available.
Optional practice exam (trial exam)
To supplement this training course you may add a special practice exam. This practice exam comprises a number of trial exams which are very similar to the real exam, both in terms of form and content. This is the ultimate way to test whether you are ready for the exam.
Optional practice lab
To supplement this training course you may add a special practice lab. You perform the tasks on real hardware and/or software applicable to your Lab. The labs are fully hosted in our cloud. The only thing you need to use our practice labs is a web browser. In the LiveLab environment you will find exercises which you can start immediately. The lab enviromentconsist of complete networks containing for example, clients, servers,etc. This is the ultimate way to gain extensive hands-on experience.
Sign In
WHY_ICTTRAININGEN
Via ons opleidingsconcept bespaar je tot 80% op trainingen
Start met leren wanneer je wilt. Je bepaalt zelf het gewenste tempo
Spar met medecursisten en profileer je als autoriteit in je vakgebied.
Ontvang na succesvolle afronding van je cursus het officiële certificaat van deelname van Icttrainingen.nl
Krijg inzicht in uitgebreide voortgangsinformatie van jezelf of je medewerkers
Kennis opdoen met interactieve e-learning en uitgebreide praktijkopdrachten door gecertificeerde docenten
Orderproces
Once we have processed your order and payment, we will give you access to your courses. If you still have any questions about our ordering process, please refer to the button below.
read more about the order process
Een zakelijk account aanmaken
Wanneer u besteld namens uw bedrijf doet u er goed aan om aan zakelijk account bij ons aan te maken. Tijdens het registratieproces kunt u hiervoor kiezen. U heeft vervolgens de mogelijkheden om de bedrijfsgegevens in te voeren, een referentie en een afwijkend factuuradres toe te voegen.
Betaalmogelijkheden
U heeft bij ons diverse betaalmogelijkheden. Bij alle betaalopties ontvangt u sowieso een factuur na de bestelling. Gaat uw werkgever betalen, dan kiest u voor betaling per factuur.
Cursisten aanmaken
Als u een zakelijk account heeft aangemaakt dan heeft u de optie om cursisten/medewerkers aan te maken onder uw account. Als u dus meerdere trainingen koopt, kunt u cursisten aanmaken en deze vervolgens uitdelen aan uw collega’s. De cursisten krijgen een e-mail met inloggegevens wanneer zij worden aangemaakt en wanneer zij een training hebben gekregen.
Voortgangsinformatie
Met een zakelijk account bent u automatisch beheerder van uw organisatie en kunt u naast cursisten ook managers aanmaken. Beheerders en managers kunnen tevens voortgang inzien van alle cursisten binnen uw organisatie.
What is included?
Certificate of participation | Yes |
Monitor Progress | Yes |
Award Winning E-learning | Yes |
Mobile ready | Yes |
Sharing knowledge | Unlimited access to our IT professionals community |
Study advice | Our consultants are here for you to advice about your study career and options |
Study materials | Certified teachers with in depth knowledge about the subject. |
Service | World's best service |
Platform
Na bestelling van je training krijg je toegang tot ons innovatieve leerplatform. Hier vind je al je gekochte (of gevolgde) trainingen, kan je eventueel cursisten aanmaken en krijg je toegang tot uitgebreide voortgangsinformatie.
FAQ
Niet gevonden wat je zocht? Bekijk alle vragen of neem contact op.