Closed prajapati-parth closed 6 years ago
+1
@prajapati-parth I also encountered this problem, how did you solve it?
@zivyangll I do not exactly remember as this has been like an year ago but looking at the git history it seems like I changed window.location.href = "https://some.url.com"
to window.location.assign("https://some.url.com")
.
I encountered a strange issue where I was trying to cover a function in react class that was of the following kind
Trying to hit the code doesn't work. But commenting out the line
window.location.href = url
hits the code.What I've tried so far: I thought accessing
window
might throw an exception but doingconsole.log(window)
it logs a window object.