From 88e0287396ae9b4cf66ca39cb58e178463afcb57 Mon Sep 17 00:00:00 2001 From: Dan Adajian Date: Tue, 11 Jun 2024 08:46:03 -0500 Subject: [PATCH] unit test --- test/unit/should_support_custom_scalars/expected.kt | 6 ++++-- test/unit/should_support_custom_scalars/schema.graphql | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/unit/should_support_custom_scalars/expected.kt b/test/unit/should_support_custom_scalars/expected.kt index 4543a7a..7cd6555 100644 --- a/test/unit/should_support_custom_scalars/expected.kt +++ b/test/unit/should_support_custom_scalars/expected.kt @@ -6,11 +6,13 @@ import com.expediagroup.graphql.generator.annotations.* data class MyScalarType( val idField: com.expediagroup.graphql.generator.scalars.ID? = null, val field: java.net.URL? = null, - val field2: java.net.URL + val field2: java.net.URL, + val field3: List = emptyList() ) @GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT]) data class MyCustomScalarType( val field: String? = null, - val field2: String + val field2: String, + val field3: List = emptyList() ) diff --git a/test/unit/should_support_custom_scalars/schema.graphql b/test/unit/should_support_custom_scalars/schema.graphql index ae7aaa3..c287932 100644 --- a/test/unit/should_support_custom_scalars/schema.graphql +++ b/test/unit/should_support_custom_scalars/schema.graphql @@ -4,6 +4,7 @@ type MyScalarType { idField: ID field: URL field2: URL! + field3: [URL!] } scalar CustomScalar @@ -11,4 +12,5 @@ scalar CustomScalar type MyCustomScalarType { field: CustomScalar field2: CustomScalar! + field3: [CustomScalar!] }