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.

Write us

Find us at the office

Kyker- Kublin street no. 42, 51864 Pretoria, South Africa

Give us a ring

Carnell Mckean
+65 937 708 93
Mon - Fri, 10:00-20:00

Contact us