hinthealth / behave

Front-end testing helpers
MIT License
1 stars 0 forks source link

Override "expect" to do a find of what you pass in, and then send that result to regular jasmine.expect #2

Closed blakewest closed 10 years ago

blakewest commented 10 years ago

Can't make this work. Overriding expect, even when calling jasmine's expect through jasmine.getGlobal().expect seems to cause an infinite loop. It might be possible, but 40 minutes of rifling through jasmine's source code turned up nothing definitive one way or the other. So closing this for now, but did something close by just creating a "bexpect" that delegates to jasmine's expect.