What is document.body in jasmine tests?

Where document.querySelector('body')points to Jasmine's tests?

Is it empty or what does it look like? Is a new page loaded in the default state for each test case, or is it shared with tests?

+4
source share
1 answer

document.bodyis a test running HTML file into which each of your source and test files is loaded. It is available globally and is constantly there, just like in all tests.

0
source

Source: https://habr.com/ru/post/1652423/


All Articles