SecurityService.prototype.Feedback = function () {
window.open('https://www.google.com/', '_blank');
I need to write the test case for above code in Jasmine in Angular 2.
SecurityService.prototype.Feedback = function () {
window.open('https://www.google.com/', '_blank');
I need to write the test case for above code in Jasmine in Angular 2.
I'd recommend you to use
$window
instead of window.If you do that, you can easily test it like this:
Hope that helps.