July 2017
Intermediate to advanced
454 pages
10h 1m
English
Here's a list of the most commonly used Jasmine global methods available to write test suites:
|
Global Methods |
Description |
|
describe |
The describe function is a block of code that implements the test suite |
| it | Specs are defined by calling the global Jasmine function it, which as described takes a string and a function |
| beforeEach | This method is called once before each spec in the describe in which it is called |
| afterEach | This method is called once after each spec |
| beforeAll | This method is called once before all specs in the describe |
| afterAll | This method is called only once after all the specs are called |
| xdescribe | This temporarily disables tests that you don't want to execute |
| pending | Pending ... |
Read now
Unlock full access