-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
improve test code #6644
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
improve test code #6644
Conversation
1. proper name to describe what the test does 2. remove creation of extra Parse server instance 3. remove the strange file of rest routes for testing 4. use async await
The test failure on travis has nothing to do with my change. All tests passed locally |
Codecov Report
@@ Coverage Diff @@
## master #6644 +/- ##
===========================================
+ Coverage 83.74% 93.99% +10.24%
===========================================
Files 169 169
Lines 11991 12601 +610
===========================================
+ Hits 10042 11844 +1802
+ Misses 1949 757 -1192
Continue to review full report at Codecov.
|
@davimacedo Sounds like there are some stories? |
Does it actually create an extra parse server instance? Looks like it would only be created when you call the The file could have value in the future. |
I don't have an opinion and will happily defer to your judgment. It would be helpful in the future to break a change like this into two commits: 1. to apply current lint rules 2. the change itself. |
@acinader that is a good idea, I can try that later this weekend |
Superced by #7121 @sunshineo Thanks for finding this. I spend hours on tests just to find this. |
Only the first test in ParseAPI.spec.js was changed, other changes in the file due to eslint
Only removed line 150 in helper.js, other changes in the file due to eslint