24 lines
907 B
Kotlin
24 lines
907 B
Kotlin
package com.vanced.manager.feature.home.data.datasource
|
|
|
|
/*
|
|
internal class PkgInformationDataSourceImplTest : ShouldSpec() {
|
|
|
|
private val pkgManager: PkgManager = mockk()
|
|
|
|
private val dataSource = PkgInformationDataSourceImpl(pkgManager)
|
|
|
|
init { // https://kotest.io/styles/
|
|
should("return version code") {
|
|
val testPackageName = "VancedManager"
|
|
val expectation = 4545
|
|
coEvery { pkgManager.getVersionCode(testPackageName) } returns expectation
|
|
dataSource.getVersionCode(testPackageName) shouldBe expectation
|
|
}
|
|
should("return version name") {
|
|
val testPackageName = "VancedManager"
|
|
val expectation = "VancedManagerName"
|
|
coEvery { pkgManager.getVersionName(testPackageName) } returns expectation
|
|
dataSource.getVersionName(testPackageName) shouldBe expectation
|
|
}
|
|
}
|
|
}*/ |