Skip to content

Commit

Permalink
Fix tests constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevazhnovu committed Dec 16, 2024
1 parent d649f6a commit d6d4778
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ class CampaignManagerImplTest {
fun given_an_expired_GDPR_isGdprExpired_RETURN_true() {

dataStorage.gdprExpirationDate = "2022-10-27T17:15:57.006Z"
dataStorage.ccpaExpirationDate = "2024-10-27T17:15:57.006Z"
campaignManager.usNatCS = usnatMock.copy(expirationDate = "2024-10-27T17:15:57.006Z")
dataStorage.ccpaExpirationDate = "2025-10-27T17:15:57.006Z"
campaignManager.usNatCS = usnatMock.copy(expirationDate = "2025-10-27T17:15:57.006Z")

campaignManager.isGdprExpired.assertTrue()
campaignManager.isCcpaExpired.assertFalse()
Expand All @@ -177,9 +177,9 @@ class CampaignManagerImplTest {
@Test
fun given_an_expired_CCPA_isCcpaExpired_RETURN_true() {

dataStorage.gdprExpirationDate = "2024-10-27T17:15:57.006Z"
dataStorage.gdprExpirationDate = "2025-10-27T17:15:57.006Z"
dataStorage.ccpaExpirationDate = "2022-10-27T17:15:57.006Z"
campaignManager.usNatCS = usnatMock.copy(expirationDate = "2024-10-27T17:15:57.006Z")
campaignManager.usNatCS = usnatMock.copy(expirationDate = "2025-10-27T17:15:57.006Z")

campaignManager.isGdprExpired.assertFalse()
campaignManager.isCcpaExpired.assertTrue()
Expand All @@ -189,8 +189,8 @@ class CampaignManagerImplTest {
@Test
fun given_an_expired_USNAT_isUsnatExpired_RETURN_true() {

dataStorage.gdprExpirationDate = "2024-10-27T17:15:57.006Z"
dataStorage.ccpaExpirationDate = "2024-10-27T17:15:57.006Z"
dataStorage.gdprExpirationDate = "2025-10-27T17:15:57.006Z"
dataStorage.ccpaExpirationDate = "2025-10-27T17:15:57.006Z"
campaignManager.usNatCS = usnatMock.copy(expirationDate = "2022-10-27T17:15:57.006Z")

campaignManager.isGdprExpired.assertFalse()
Expand Down

0 comments on commit d6d4778

Please sign in to comment.