Correct some places where I was calling new Spy() instead of Spy(). Behavior is the same because of how JavaScript's new keyword is implemented, but semantics was all wrong in my opinion. Also added two more tests pertaining to failing guard and exit event.
Correct some places where I was calling
new Spy()
instead ofSpy()
. Behavior is the same because of how JavaScript'snew
keyword is implemented, but semantics was all wrong in my opinion. Also added two more tests pertaining to failing guard and exit event.