Uh oh!
There was an error while loading. Please reload this page.
Promisify User model - #1493
Conversation
There was a problem hiding this comment.
For this test, User.login throws "Unhandled rejection Error: login failed". And so, when executing the test it says "Cannot call method 'then' of undefined". Whereas, https://github.com/strongloop/loopback/pull/1493/files#diff-5d81af95449574544e7317f3eda2badeR259, correctly returns fn.promise
@bajtos - can you help me?
pulkitsinghal
commented
Jul 2, 2015
@PradnyaBaviskar It would seem that the loopback team intentionally limited the promisification to CRUD methods
But that doesn't mean we shouldn't get the other ones also promisified, thanks for opening this, +1 |
There was a problem hiding this comment.
Where is the app variable defined? Perhaps this is throwing an error that is later converted to the error message you are seeing?
There was a problem hiding this comment.
Oh, are you relying on the fact that test/support.js is setting up a global app variable?
ebef568 to
6113eefCompare6113eef to
dc987a5ComparePradnyaBaviskar
commented
Jul 14, 2015
Done with promisifying User model. @raymondfeng, can you please review? |
bajtos
commented
Aug 4, 2015
@slnode test please |
bajtos
commented
Aug 4, 2015
Landed, thank you for the contribution! |
bajtos
commented
Aug 4, 2015
FWIW, the Jenkins build is failing due to an issue that was fixed on master by 34eb0e1 |
Connect #418