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.

Contact us

Find us at the office

Hurtarte- Aminov street no. 34, 93309 The Valley, Anguilla

Give us a ring

Oluwadamilola Gleich
+93 552 509 928
Mon - Fri, 8:00-17:00

Tell us about you