You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your READ permissions return a PERMISSION_DENIED, then the getDoc promise will return the error code. however since this only expects that promise.not.toBeUndefined, then the error code meets that criteria.
I fixed locally by just adding the second check to make sure that the error code != PERMISSION_DENIED
The function, expectPermissionGetSucceeds, can pass when it shouldn't.
quickstart-testing/unit-test-security-rules-v9/test/utils.ts
Line 61 in 6ac0acf
If your READ permissions return a PERMISSION_DENIED, then the getDoc promise will return the error code. however since this only expects that promise.not.toBeUndefined, then the error code meets that criteria.
I fixed locally by just adding the second check to make sure that the error code != PERMISSION_DENIED
The text was updated successfully, but these errors were encountered: