You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
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
TypeError: 'undefined' is not a function (evaluating 'promise.then.bind(promise)')
at file:///Users/robin/Code/project/node_modules/chai-as-promised/lib/chai-as-promised.js:25
at doAsserterAsyncAndAddThen (file:///Users/robin/Code/project/node_modules/chai-as-promised/lib/chai-as-promised.js:310)
at file:///Users/robin/Code/lproject/node_modules/chai-as-promised/lib/chai-as-promised.js:283
at file:///Users/robin/Code/project/node_modules/chai/chai.js:4462
Any spontaneous ideas why that could be?
The text was updated successfully, but these errors were encountered:
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 log to true and doing some console.logs to see what's going on.
Hi,
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?
The text was updated successfully, but these errors were encountered: