Unit Testing in JavaScript: Should.js & Must.js

Unit Testing    |    Intermediate
  • 12 videos | 1h 12m 31s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 5 users Rating 4.6 of 5 users (5)
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 course
    Recall the different styles that can be used with the should.js api
    Describe how different data types can be tested using should.js
    Execute assertions to check for values that evaluate to true and false using should.js
    Perform pattern matching and substring checks using should.js
    Evaluate numeric values using should.js
  • Examine objects and properties using should.js
    Evaluate functions that return promises
    Recall the different styles that can be used with the must.js api
    Run basic assertions using must.js
    Use assertions to test different data types with must.js
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 16s
  • 7m 31s
    Upon completion of this video, you will be able to recall the different styles that can be used with the Should.js API. FREE ACCESS
  • Locked
    3.  Testing Data Types with Should
    7m 12s
    After completing this video, you will be able to describe how different data types can be tested using Should.js. FREE ACCESS
  • Locked
    4.  Testing Truthy and Falsy Values with Should
    4m 42s
    In this video, you will learn how to write assertions to check for values that evaluate to true and false using Should.js. FREE ACCESS
  • Locked
    5.  Testing Strings with Should
    6m
    During this video, you will learn how to perform pattern matching and substring checks using Should.js. FREE ACCESS
  • Locked
    6.  Testing Numbers with Should
    9m 27s
    During this video, you will learn how to evaluate numeric values using the Should.js library. FREE ACCESS
  • Locked
    7.  Testing Objects with Should
    9m 43s
    In this video, you will learn how to examine objects and properties using Should.js. FREE ACCESS
  • Locked
    8.  Testing Promises with Should
    2m 53s
    In this video, find out how to evaluate functions that return promises. FREE ACCESS
  • Locked
    9.  Using Must.js with Different Styles
    5m 29s
    After completing this video, you will be able to recall the different styles that can be used with the Must.js API. FREE ACCESS
  • Locked
    10.  Running Basic Tests with Must
    7m 10s
    Learn how to run basic assertions using Must.js. FREE ACCESS
  • Locked
    11.  Testing Different Data Types with Must
    8m 49s
    In this video, learn how to use assertions to test different data types with Must. FREE ACCESS
  • Locked
    12.  Course Summary
    1m 19s
    In this video, we will summarize the key concepts covered in this course. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.6 of 81 users Rating 4.6 of 81 users (81)
Rating 4.6 of 171 users Rating 4.6 of 171 users (171)
Rating 4.6 of 52 users Rating 4.6 of 52 users (52)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.3 of 4 users Rating 4.3 of 4 users (4)
Rating 5.0 of 6 users Rating 5.0 of 6 users (6)
Rating 4.4 of 657 users Rating 4.4 of 657 users (657)