Pre & Post Test Operations
Video Player is loading.
Loaded: 0%
Current Time 0:00
/
Duration -:-
- , opens subtitles settings dialogsubtitles settings
- , selectedsubtitles off
1x
- 2x
- 1.5x
- , selected1x
- 0.5x
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
Similarly, we have another method called afterEach
which simply performs some specified operations after each test.
Sometimes, we would want to execute some code only once, before any tests in that scope are executed. To achieve this, we can enclose the respective code into a beforeAll
block, which follows the same syntax as a beforeEach
block:
js9123beforeAll(() => {// before any tests are executed});
Similarly, we can also specify some code to be executed after all the tests in that scope are executed by using a afterAll
block:
js9123afterAll(() => {// after all the tests have been executed});
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 9
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår