Created
July 6, 2023 14:06
-
-
Save ArunYogeshwaran/25c993719f11723f9f65216072f8f816 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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