mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Firebase token: the beginning of the token is always the same, print out the end of it.
This commit is contained in:
committed by
Benoit Marty
parent
4a246687e2
commit
4aa1afec5a
+1
-1
@@ -48,7 +48,7 @@ class FirebaseTokenTest @Inject constructor(
|
|||||||
delegate.updateState(
|
delegate.updateState(
|
||||||
description = stringProvider.getString(
|
description = stringProvider.getString(
|
||||||
R.string.troubleshoot_notifications_test_firebase_token_success,
|
R.string.troubleshoot_notifications_test_firebase_token_success,
|
||||||
"${token.take(8)}*****"
|
"*****${token.takeLast(8)}"
|
||||||
),
|
),
|
||||||
status = NotificationTroubleshootTestState.Status.Success
|
status = NotificationTroubleshootTestState.Status.Success
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ class FirebaseTokenTestTest {
|
|||||||
assertThat(awaitItem().status).isEqualTo(NotificationTroubleshootTestState.Status.InProgress)
|
assertThat(awaitItem().status).isEqualTo(NotificationTroubleshootTestState.Status.InProgress)
|
||||||
val lastItem = awaitItem()
|
val lastItem = awaitItem()
|
||||||
assertThat(lastItem.status).isEqualTo(NotificationTroubleshootTestState.Status.Success)
|
assertThat(lastItem.status).isEqualTo(NotificationTroubleshootTestState.Status.Success)
|
||||||
assertThat(lastItem.description).contains(FAKE_TOKEN.take(8))
|
assertThat(lastItem.description).contains(FAKE_TOKEN.takeLast(8))
|
||||||
assertThat(lastItem.description).doesNotContain(FAKE_TOKEN)
|
assertThat(lastItem.description).doesNotContain(FAKE_TOKEN)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user