Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
fix TestTimeConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
akashs056 committed Aug 31, 2024
1 parent 6f08194 commit 9c396e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ class TestTimeConverter : TimeConverter {
override fun LocalDateTime.toUTC(): Instant {
return this.atZone(utcZoneId).toInstant()
}

fun LocalDateTime.toInstant(): Instant {
return this.atZone(utcZoneId).toInstant()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import io.kotest.property.arbitrary.next
import io.kotest.property.checkAll
import io.mockk.coEvery
import io.mockk.mockk
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.advanceUntilIdle
import kotlinx.coroutines.test.runTest
import org.junit.Before
import org.junit.Test
Expand All @@ -43,7 +45,7 @@ class ExportCsvUseCasePropertyTest {
transactionRepository = transactionRepository,
dispatchers = TestDispatchersProvider,
fileSystem = fileSystem,
timeConverter = timeConverter,
timeConverter = timeConverter
)
}

Expand Down

0 comments on commit 9c396e6

Please sign in to comment.