mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
test: Prod shouldn't get nightly build
This commit is contained in:
parent
f1f87c56f2
commit
0079de72a8
1 changed files with 7 additions and 7 deletions
|
@ -1,16 +1,11 @@
|
|||
package eu.kanade.tachiyomi.data.updater
|
||||
|
||||
import android.content.Context
|
||||
import eu.kanade.tachiyomi.core.preference.PreferenceStore
|
||||
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
||||
import eu.kanade.tachiyomi.network.NetworkHelper
|
||||
import io.mockk.MockKAnnotations
|
||||
import io.mockk.impl.annotations.MockK
|
||||
import io.mockk.impl.annotations.RelaxedMockK
|
||||
import io.mockk.impl.annotations.SpyK
|
||||
import io.mockk.mockk
|
||||
import kotlinx.serialization.json.Json
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
|
||||
|
@ -60,6 +55,11 @@ class AppUpdateCheckerTest {
|
|||
assertTrue(isNewVersion("1.2.4-r1", "1.2.3", false))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Prod shouldn't get nightly build (Check for Betas)`() {
|
||||
assertFalse(isNewVersion("r1", "1.2.3", false))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Latest version check`() {
|
||||
assertFalse(isNewVersion("1.2.3", "1.2.3", false))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue