Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed Sep 30, 2024
1 parent 922ef4a commit 3d271aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.sourcepoint.cmplibrary.creation

import android.content.Context
import com.sourcepoint.cmplibrary.data.network.NetworkClient
import com.sourcepoint.cmplibrary.data.network.connection.ConnectionManager
import com.sourcepoint.cmplibrary.data.network.connection.create
import com.sourcepoint.cmplibrary.data.network.createNetworkClient
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.sourcepoint.cmplibrary.creation

import android.content.Context
import com.sourcepoint.cmplibrary.data.network.NetworkClient
import com.sourcepoint.cmplibrary.data.network.connection.ConnectionManager
import com.sourcepoint.cmplibrary.data.network.connection.create
import com.sourcepoint.cmplibrary.data.network.createNetworkClient
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.sourcepoint.cmplibrary.creation

import android.content.Context
import com.sourcepoint.cmplibrary.data.network.NetworkClient
import com.sourcepoint.cmplibrary.data.network.connection.ConnectionManager
import com.sourcepoint.cmplibrary.data.network.connection.create
import com.sourcepoint.cmplibrary.data.network.createNetworkClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,22 @@ class ServiceImplTest {
fun `GIVEN a custom consent THROWS an exception`() {
every { cm.gdprConsentStatus } answers { null }

(Service
.create(ncMock, cm, cmu, ds, logger, execManager, connectionManager)
.sendCustomConsentServ(mockk(), Env.STAGE) as? Left).assertNotNull()
(
Service
.create(ncMock, cm, cmu, ds, logger, execManager, connectionManager)
.sendCustomConsentServ(mockk(), Env.STAGE) as? Left
).assertNotNull()
}

@Test
fun `GIVEN a deleted custom consent THROWS an exception`() {
every { cm.gdprConsentStatus } answers { null }

(Service
.create(ncMock, cm, cmu, ds, logger, execManager, connectionManager)
.deleteCustomConsentToServ(mockk(), Env.STAGE) as? Left).assertNotNull()
(
Service
.create(ncMock, cm, cmu, ds, logger, execManager, connectionManager)
.deleteCustomConsentToServ(mockk(), Env.STAGE) as? Left
).assertNotNull()
}

@Test
Expand Down

0 comments on commit 3d271aa

Please sign in to comment.