I\'m trying to write a test case but I\'m stuck as I\'m not able to replicate the window in the unit test cases in jasmine .
I have a class as follows