Unit Testing in JavaScript: Should.js & Must.js
Unit Testing
| Intermediate
- 12 Videos | 1h 12m 31s
- Includes Assessment
- Earns a Badge
This 12-video course explores unit testing on software development paradigms, the support testing provided by JS (JavaScript) and the assertion libraries available in JS. Learners will examine how Unit.js offers extended APIs (application program interface) to communicate between various software components. First, you will learn to use sign-on, which is invaluable in constructing spice, stubs, and mocks in JS. You will learn how to use the Mocha testing framework. This course examines 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 learn to use this assertion libraries to test code by using a chained assertion style. This course examines the fluent style Should.js uses for assertions, and the several helper methods available to chain multiple assertions together. Finally, you will learn to write unit tests to test numbers, strings, truthy and falsy values, objects, arrays, and promises in Javascript.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this courserecall the different styles that can be used with the Should.js APIdescribe how different data types can be tested using Should.jsexecute assertions to check for values that evaluate to true and false using Should.jsperform pattern matching and substring checks using Should.jsevaluate numeric values using Should.js
-
examine objects and properties using Should.jsevaluate functions that return promisesrecall the different styles that can be used with the Must.js APIrun basic assertions using Must.jsuse assertions to test different data types with Must.jssummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 16sUP NEXT
-
2.Using Should.js with Different Styles7m 31s
-
3.Testing Data Types with Should7m 12s
-
4.Testing Truthy and Falsy Values with Should4m 42s
-
5.Testing Strings with Should6m
-
6.Testing Numbers with Should9m 27s
-
7.Testing Objects with Should9m 43s
-
8.Testing Promises with Should2m 53s
-
9.Using Must.js with Different Styles5m 29s
-
10.Running Basic Tests with Must7m 10s
-
11.Testing Different Data Types with Must8m 49s
-
12.Course Summary1m 19s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.