cloudhead/vows — Issue #155: Use instanceof instead of .constructor
Author: Twisol
Created: 2011-11-14 09:39:26+00:00
State: open

I have a Promise type used by most of the methods I'm trying to test, and Vows doesn't recognize it as an EventEmitter even though (promise instanceof EventEmitter) is true. The problem seems to stem from [this line](https://github.com/cloudhead/vows/blob/master/lib/vows/suite.js#L145), where .constructor is used instead of the instanceof operator.