Join GitHub today
using chai-as-promised caused error when run with grunt-mocha #95
I just added chai-as-promised to a project of mine. The tests run fine in real browsers, but not with phantom js. I get
Any spontaneous ideas why that could be?
No idea, I'm not familiar with chai-as-promised. I'm guessing promise is undefined? But the way it gets passed the promise is probably the root of the problem. I'd have to know more about your setup to investigate further, but you can try setting