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

Yee- Lancione street no. 98, 92681 Abu Dhabi, United Arab Emirates

Give us a ring

Hawkins Parolisi
+18 246 478 424
Mon - Fri, 10:00-19:00

Say hello