There are some terms you must be aware of before going to write the Jasmine test cases.

  1. Suites

A suit is the starting point of a Jasmine test cases, it actually calls the global jasmine function describe. It can have two parameters, a string value which describes the suit, and a function which implements the suit.

  1. Spec

Like suites, a spec starts with a string which can be the title of the suit and a function where we write the tests. A spec can contain one or more expectation that test the state of our code.

  1. Expectation

Value of an expectation is either true or false, an expectation starts with the function expect. It takes a value and call the actual one.