Skip to content

Commit

Permalink
AuthResult structure test made more forgiving
Browse files Browse the repository at this point in the history
Exact values differ on different platforms
  • Loading branch information
David Holas committed Jul 17, 2024
1 parent 79a7516 commit ac4cffa
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ class FirebaseAuthTest {
assertEquals(uid, result.user!!.uid, "uid does not match.")
assertNull(result.credential, "Credential throws.")
assertNotNull(result.additionalUserInfo, "AdditionalUserInfo does not exist.")
assertNull(result.additionalUserInfo!!.providerId, "AdditionalUserInfo providerId throws.")
assertNull(result.additionalUserInfo!!.username, "AdditionalUserInfo username throws.")
assertNull(result.additionalUserInfo!!.profile, "AdditionalUserInfo profile throws.")
assertFalse(result.additionalUserInfo!!.isNewUser, "AdditionalUserInfo isNewUser does not exist.")
// Just test if it does not throw
result.additionalUserInfo!!.providerId
result.additionalUserInfo!!.username
result.additionalUserInfo!!.profile
result.additionalUserInfo!!.isNewUser
}

private suspend fun getTestUid(email: String, password: String): String {
Expand Down

0 comments on commit ac4cffa

Please sign in to comment.