Answer the question
In order to leave comments, you need to log in
How can I change the value of a variable to something else in Jasmine tests inside the method under test?
Problem - I'm testing a method in which the value of one variable is equal to the property of a static class (es6),
despite the fact that Settings.urlParams themselves are created after calling the static init() method of the Settings class, the init() method is called in a completely different place.
.....
let urlparams = Settings.urlParams;
.....
Answer the question
In order to leave comments, you need to log in
the init() method is called in a completely different place altogether
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question