Skip to content
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

Merged
merged 1 commit into from
May 14, 2016

Conversation

TylerBrock
Copy link
Contributor

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.

@drew-gross
Copy link
Contributor

Can you define the cloud code for the test inside the test and the remove it with _removeHook? See CloudCodeLogger.spec for an example.

@ghost
Copy link

ghost commented May 12, 2016

@TylerBrock updated the pull request.

@TylerBrock
Copy link
Contributor Author

Sure, hygienic, I like that.

@ghost
Copy link

ghost commented May 13, 2016

@TylerBrock updated the pull request.

@ghost
Copy link

ghost commented May 13, 2016

@TylerBrock updated the pull request.

@TylerBrock TylerBrock changed the title add failing beforeSave add ACL test add test that adds ACL in beforeSave hook May 13, 2016
@ghost
Copy link

ghost commented May 13, 2016

@TylerBrock updated the pull request.

@TylerBrock
Copy link
Contributor Author

Figured it out, might be nice to have the test anyway, feel free to merge or close.

@ghost
Copy link

ghost commented May 13, 2016

@TylerBrock updated the pull request.

@flovilmart
Copy link
Contributor

The test look good to me

@codecov-io
Copy link

codecov-io commented May 13, 2016

Current coverage is 92.17%

Merging #1772 into master will not change coverage

@@             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          

Powered by Codecov. Last updated by e4998c2...a65e04f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants