Joined February 2014
·

Chesley Brown

Newfoundland
·
·

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)

Achievements
1 Karma
0 Total ProTip Views