diff --git a/example/src/getTests.ts b/example/src/getTests.ts index 3a61a5eca..8e5c59724 100644 --- a/example/src/getTests.ts +++ b/example/src/getTests.ts @@ -312,7 +312,7 @@ export function getTests( .didNotThrow() .equals('gas') ), - createTest('tryMiddleParam(...)', () => + createTest('tryOptionalEnum(...)', () => it(() => testObject.tryOptionalEnum(undefined)) .didNotThrow() .equals(undefined) diff --git a/packages/react-native-nitro-image/android/src/main/java/com/margelo/nitro/image/HybridTestObjectKotlin.kt b/packages/react-native-nitro-image/android/src/main/java/com/margelo/nitro/image/HybridTestObjectKotlin.kt index 068108e93..530aea225 100644 --- a/packages/react-native-nitro-image/android/src/main/java/com/margelo/nitro/image/HybridTestObjectKotlin.kt +++ b/packages/react-native-nitro-image/android/src/main/java/com/margelo/nitro/image/HybridTestObjectKotlin.kt @@ -72,8 +72,8 @@ class HybridTestObjectKotlin: HybridTestObjectSwiftKotlinSpec() { } - override fun tryOptionalEnum(powertrain: Powertrain?): Powertrain? { - return powertrain + override fun tryOptionalEnum(value: Powertrain?): Powertrain? { + return value } override fun calculateFibonacciSync(value: Double): Long { diff --git a/packages/react-native-nitro-image/ios/HybridTestObjectSwift.swift b/packages/react-native-nitro-image/ios/HybridTestObjectSwift.swift index 4eda124aa..19791bc61 100644 --- a/packages/react-native-nitro-image/ios/HybridTestObjectSwift.swift +++ b/packages/react-native-nitro-image/ios/HybridTestObjectSwift.swift @@ -100,8 +100,8 @@ class HybridTestObjectSwift : HybridTestObjectSwiftKotlinSpec { return str } - func tryOptionalEnum(powertrain: Powertrain?) throws -> Powertrain? { - return powertrain + func tryOptionalEnum(value: Powertrain?) throws -> Powertrain? { + return value } func calculateFibonacciSync(value: Double) throws -> Int64 {