-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work !! 👍 Just left some comment below !
import com.google.firebase.auth.GoogleAuthProvider | ||
import com.google.firebase.auth.ktx.auth | ||
import com.google.firebase.ktx.Firebase | ||
import dagger.hilt.android.AndroidEntryPoint | ||
import javax.inject.Inject | ||
|
||
import net.datafaker.Faker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of DataFaker ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it to create fake username ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! I have a function that crates username with his library
@@ -52,7 +53,7 @@ class DataGetter @Inject constructor() { | |||
fun updateFieldInt(uid: String, fieldName: String, newVal: Int, method:String) { | |||
dbUserRef.child(uid).child(fieldName) | |||
.get().addOnSuccessListener { t -> | |||
var finalVal = checkValue(t, method, newVal)//newVal TO DELETE IF TESTS PASS, OTHERWISE ROLL BACK! | |||
val finalVal = checkValue(t, method, newVal)//newVal TO DELETE IF TESTS PASS, OTHERWISE ROLL BACK! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose of this comment ? We should not keep it no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not me who left it, i am not exaclty sure what it means... I will ask inva group
app/src/androidTest/java/ch/sdp/vibester/activity/AuthenticationActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/ch/sdp/vibester/activity/AuthenticationActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/sdp/vibester/activity/AuthenticationActivity.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 😀👍!
Code Climate has analyzed commit a0b6218 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 73.5% (80% is the threshold). This pull request will bring the total coverage in the repository to 84.6%. View more on Code Climate. |
This PR: