beforeEach
call the way it is.
_userOptions_
is injected into the beforeEach and stored in the userOptions
variable within the describe
function. But then each of your tests has a userOptions
parameter defined its arrow function. So your tests using the userOptions
from the arrow function, not the one defined in the describe
function.