Skip to content

Commit 88e0287

Browse files
committed
unit test
1 parent 086877e commit 88e0287

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/unit/should_support_custom_scalars/expected.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import com.expediagroup.graphql.generator.annotations.*
66
data class MyScalarType(
77
val idField: com.expediagroup.graphql.generator.scalars.ID? = null,
88
val field: java.net.URL? = null,
9-
val field2: java.net.URL
9+
val field2: java.net.URL,
10+
val field3: List<java.net.URL> = emptyList()
1011
)
1112

1213
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])
1314
data class MyCustomScalarType(
1415
val field: String? = null,
15-
val field2: String
16+
val field2: String,
17+
val field3: List<String> = emptyList()
1618
)

test/unit/should_support_custom_scalars/schema.graphql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ type MyScalarType {
44
idField: ID
55
field: URL
66
field2: URL!
7+
field3: [URL!]
78
}
89

910
scalar CustomScalar
1011

1112
type MyCustomScalarType {
1213
field: CustomScalar
1314
field2: CustomScalar!
15+
field3: [CustomScalar!]
1416
}

0 commit comments

Comments
 (0)