-
Notifications
You must be signed in to change notification settings - Fork 9
adding bailout for query instance and test #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I just noticed that when the tests run on mongoose 4, the array that is returned is ordered backwards. I'll have to give this some thought. just a first pass without refactoring, but something along these lines ought to get it done:
refactored to:
|
Hi, @lineus. Thank you so much for your help. I think the failing tests on CI is due to the use of Could you update .travis.yml to run only v7? (just remove the other versions). |
I removed the async/await and used straight up promises instead. If you'd prefer me to update the travis.yml I can do that instead, but this way I'm not changing your travis setup. |
Great. I think we have finally fixed it. Thank you, @lineus. |
You're very welcome by the way 😀 This was fun to work on! It was neat to play around in your plugin too, I learned several new things from it. |
Thanks for fixing this! Don't hesitate to reach out if you have any other issues @diegohaz , we're happy to help 👍 |
The details of why I made these changes are in Automattic/mongoose#6375 (comment)
I'm not super familiar with babel or tape, so I won't be offended if you think my changes could be done differently. I'm happy to make any adjustments that you feel it needs.
I hope this helps :)