File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/kotlin/graphql/kickstart/tools/relay
test/kotlin/graphql/kickstart/tools/relay Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class RelayConnectionFactory : TypeDefinitionFactory {
88 override fun create (existing : MutableList <Definition <* >>): List <Definition <* >> {
99 val connectionDirectives = findConnectionDirectives(existing)
1010 if (connectionDirectives.isEmpty()) {
11+ // do not add Relay definitions unless needed
1112 return emptyList()
1213 }
1314
Original file line number Diff line number Diff line change 11package graphql.kickstart.tools.relay
22
33import graphql.language.Definition
4- import org.junit.Assert
4+ import org.junit.Assert.assertEquals
55import org.junit.Test
66
77class RelayConnectionFactoryTest {
@@ -15,6 +15,6 @@ class RelayConnectionFactoryTest {
1515 val newDefinitions = factory.create(existing)
1616
1717 // expect
18- Assert . assertEquals(newDefinitions.size, 0 )
18+ assertEquals(newDefinitions.size, 0 )
1919 }
2020}
You can’t perform that action at this time.
0 commit comments