Skip to content

Commit 6e71c0a

Browse files
committed
Rename enum class
1 parent 60bc0e6 commit 6e71c0a

File tree

4 files changed

+6
-6
lines changed
  • firebase-auth/src
    • androidAndroidTest/kotlin/dev/gitlive/firebase/auth
    • commonTest/kotlin/dev/gitlive/firebase/auth
    • iosTest/kotlin/dev/gitlive/firebase/auth
    • jsTest/kotlin/dev/gitlive/firebase/auth

4 files changed

+6
-6
lines changed

firebase-auth/src/androidAndroidTest/kotlin/dev/gitlive/firebase/auth/auth.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ actual val emulatorHost: String = "10.0.2.2"
1313

1414
actual val context: Any = InstrumentationRegistry.getInstrumentation().targetContext
1515

16-
actual val currentPlatform: TargetPlatform = TargetPlatform.Android
16+
actual val currentPlatform: Platform = Platform.Android
1717

1818
actual fun runTest(skip: Boolean, test: suspend () -> Unit) = runBlocking {
1919
if (skip) {

firebase-auth/src/commonTest/kotlin/dev/gitlive/firebase/auth/auth.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import kotlin.test.*
1111
expect val emulatorHost: String
1212
expect val context: Any
1313
expect fun runTest(skip: Boolean = false, test: suspend () -> Unit)
14-
expect val currentPlatform: TargetPlatform
14+
expect val currentPlatform: Platform
1515

16-
enum class TargetPlatform { Android, IOS, JS }
16+
enum class Platform { Android, IOS, JS }
1717

1818
class FirebaseAuthTest {
1919

2020
// Skip the tests on iOS simulator due keychain exceptions
21-
private val skip = currentPlatform == TargetPlatform.IOS
21+
private val skip = currentPlatform == Platform.IOS
2222

2323
@BeforeTest
2424
fun initializeFirebase() {

firebase-auth/src/iosTest/kotlin/dev/gitlive/firebase/auth/auth.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ actual val emulatorHost: String = "localhost"
1111

1212
actual val context: Any = Unit
1313

14-
actual val currentPlatform: TargetPlatform = TargetPlatform.IOS
14+
actual val currentPlatform: Platform = Platform.IOS
1515

1616
actual fun runTest(skip: Boolean, test: suspend () -> Unit) = runBlocking {
1717
if (skip) {

firebase-auth/src/jsTest/kotlin/dev/gitlive/firebase/auth/auth.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ actual val emulatorHost: String = "localhost"
1111

1212
actual val context: Any = Unit
1313

14-
actual val currentPlatform: TargetPlatform = TargetPlatform.JS
14+
actual val currentPlatform: Platform = Platform.JS
1515

1616
actual fun runTest(skip: Boolean, test: suspend () -> Unit) = GlobalScope
1717
.promise {

0 commit comments

Comments
 (0)