File tree 2 files changed +17
-0
lines changed
src/commonTest/kotlin/com/apollographql/apollo/graphql/ast/test
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ kotlin {
32
32
getByName(" jvmTest" ) {
33
33
dependencies {
34
34
implementation(libs.google.testparameterinjector)
35
+ implementation(libs.kotlin.test)
35
36
}
36
37
}
37
38
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import com.apollographql.apollo.ast.parseAsGQLDocument
9
9
import com.apollographql.apollo.ast.parseAsGQLValue
10
10
import kotlin.test.Test
11
11
import kotlin.test.assertEquals
12
+ import kotlin.test.assertFails
12
13
import kotlin.test.fail
13
14
14
15
class CommonParserTest {
@@ -111,4 +112,19 @@ query Test {
111
112
assertEquals(3 , column)
112
113
}
113
114
}
115
+
116
+ /* *
117
+ * https://github.com/graphql/graphql-spec/issues/1106
118
+ */
119
+ @Test
120
+ fun extendTypeMustAddDirectiveFieldOrInterface () {
121
+ assertFails {
122
+ """
123
+ extend type Query
124
+ """ .trimIndent()
125
+ .parseAsGQLDocument()
126
+ .getOrThrow()
127
+
128
+ }
129
+ }
114
130
}
You can’t perform that action at this time.
0 commit comments