DavidDurman / statechart

Statechart implementation in JavaScript
MIT License
100 stars 16 forks source link

Spy is constructor, not class; add 2 more tests. #13

Closed erinishimoticha closed 10 years ago

erinishimoticha commented 10 years ago

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.