-
Notifications
You must be signed in to change notification settings - Fork 872
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
assertFails() of rules-unit-testing is incorrect #3671
Labels
testing-sdk
testing with emulator
Comments
@mogaming217 Thanks for the issue. Yes, we'd appreciate a pull request. |
This is now fixed on |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Steps to reproduce:
assertFails()
of @firebase/rules-unit-testing saysExpected PERMISSION_DENIED but got unexpected error: FirebaseError: [code=permission-denied]: No matching allow statements
whenassertFails(firestore().collection('tests').doc('a').get())
in the below rules. This throws below error.So I fix this problem at this commit. If this would be ok, I'm willing to create pr!
Relevant Code:
The text was updated successfully, but these errors were encountered: