-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Style improvements #2475
Style improvements #2475
Conversation
flovilmart
commented
Aug 6, 2016
- Enable HooksRouter by default (as part of the node SDK)
- Moves problematic middlewares on per route basis
- Modernizes DatabaseController and middleware imports
- Moves test api mount to helper
Current coverage is 92.47% (diff: 97.80%)@@ master #2475 diff @@
==========================================
Files 95 93 -2
Lines 10706 10602 -104
Methods 1312 1309 -3
Messages 0 0
Branches 1738 1721 -17
==========================================
- Hits 9837 9804 -33
+ Misses 869 798 -71
Partials 0 0
|
@flovilmart updated the pull request. |
@flovilmart updated the pull request. |
return { response: {} }; | ||
}); | ||
return Promise.resolve().then(() => { | ||
this.adapter.appOpened(req.body, req); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing return?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup
@flovilmart updated the pull request. |
@@ -17,4 +16,4 @@ _ParseServer.createLiveQueryServer = ParseServer.createLiveQueryServer; | |||
let GCSAdapter = useExternal('GCSAdapter', 'parse-server-gcs-adapter'); | |||
|
|||
export default ParseServer; | |||
export { S3Adapter, GCSAdapter, FileSystemAdapter, InMemoryCacheAdapter, TestUtils, logger, _ParseServer as ParseServer }; | |||
export { S3Adapter, GCSAdapter, FileSystemAdapter, InMemoryCacheAdapter, logger, _ParseServer as ParseServer }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome, just need to either keep TestUtils exported, or change the JS SDK. Feel free to merge after that. |
I believe it's good now, let me know if the TestUtils change is good :) |
@flovilmart updated the pull request. |