Skip to content

Instantly share code, notes, and snippets.

@ArunYogeshwaran
Created July 6, 2023 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArunYogeshwaran/25c993719f11723f9f65216072f8f816 to your computer and use it in GitHub Desktop.
Save ArunYogeshwaran/25c993719f11723f9f65216072f8f816 to your computer and use it in GitHub Desktop.
@Test
fun `refer friend with new referral verify referral successful`() {
val friendReferral = getInstance()
friendReferral.referFriend("testUserId", getStaleReferral())
assertThat(referralList.contains("testUserId")).isTrue()
}
@Test
fun `refer friend with stale referral verify referral failue`() {
val friendReferral = getInstance()
friendReferral.referFriend("testUserId", getStaleReferral())
assertThat(referralList.contains("testUserId")).isFalse()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment