Question: What is Jasmine tool used for?

Jasmine is an open-source testing framework for JavaScript. It aims to run on any JavaScript-enabled platform, to not intrude on the application nor the IDE, and to have easy-to-read syntax. It is heavily influenced by other unit testing frameworks, such as ScrewUnit, JSSpec, JSpec, and RSpec.

How does Jasmine testing work?

Its used to test a specific behavior of the JavaScript code thats usually encapsulated by an object/class or a function. Its created using the Jasmine global function describe() that takes two parameters, the title of the test suite and a function that implements the actual code of the test suite.

What is a jasmine spec?

Specs. Specs are defined by calling the global Jasmine function it, which, like describe takes a string and a function. The string is the title of the spec and the function is the spec, or test. An expectation in Jasmine is an assertion that is either true or false. A spec with all true expectations is a passing spec.

Reach out

Find us at the office

Hallinan- Tripathy street no. 70, 34851 San José, Costa Rica

Give us a ring

Letha Berlinger
+71 206 631 295
Mon - Fri, 10:00-14:00

Write us