File tree 2 files changed +3
-2
lines changed
main/kotlin/graphql/kickstart/tools/relay
test/kotlin/graphql/kickstart/tools/relay
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class RelayConnectionFactory : TypeDefinitionFactory {
8
8
override fun create (existing : MutableList <Definition <* >>): List <Definition <* >> {
9
9
val connectionDirectives = findConnectionDirectives(existing)
10
10
if (connectionDirectives.isEmpty()) {
11
+ // do not add Relay definitions unless needed
11
12
return emptyList()
12
13
}
13
14
Original file line number Diff line number Diff line change 1
1
package graphql.kickstart.tools.relay
2
2
3
3
import graphql.language.Definition
4
- import org.junit.Assert
4
+ import org.junit.Assert.assertEquals
5
5
import org.junit.Test
6
6
7
7
class RelayConnectionFactoryTest {
@@ -15,6 +15,6 @@ class RelayConnectionFactoryTest {
15
15
val newDefinitions = factory.create(existing)
16
16
17
17
// expect
18
- Assert . assertEquals(newDefinitions.size, 0 )
18
+ assertEquals(newDefinitions.size, 0 )
19
19
}
20
20
}
You can’t perform that action at this time.
0 commit comments