Just wanted to note that the syntax for this as of Jasmine 2.0 would be:
spyOn(window, 'confirm').and.returnValue(true)
or
spyOn(window, 'confirm').and.returnValue(false)
Just wanted to note that the syntax for this as of Jasmine 2.0 would be:
spyOn(window, 'confirm').and.returnValue(true)
or
spyOn(window, 'confirm').and.returnValue(false)