-
-
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
add test that adds ACL in beforeSave hook #1772
Conversation
e0d8013
to
0758275
Compare
Can you define the cloud code for the test inside the test and the remove it with _removeHook? See |
@TylerBrock updated the pull request. |
Sure, hygienic, I like that. |
0758275
to
3c7a538
Compare
@TylerBrock updated the pull request. |
3c7a538
to
1987877
Compare
@TylerBrock updated the pull request. |
1987877
to
f4a633e
Compare
@TylerBrock updated the pull request. |
f4a633e
to
e3fd4de
Compare
Figured it out, might be nice to have the test anyway, feel free to merge or close. |
@TylerBrock updated the pull request. |
The test look good to me |
Current coverage is 92.17%@@ master #1772 diff @@
==========================================
Files 87 87
Lines 6206 6206
Methods 1069 1069
Messages 0 0
Branches 1292 1292
==========================================
Hits 5720 5720
Misses 486 486
Partials 0 0
|
This is kind of odd, I wrote this test to figure out why parse-server isn't saving my ACL's when i set them in beforeSave triggers but the test can't even pass the
get(id)
phase when an acl is set on object in beforeSave. Not sure what is going on here.