We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38c808d commit 00774a9Copy full SHA for 00774a9
src/test/groovy/graphql/incremental/IncrementalExecutionResultTest.groovy
@@ -121,10 +121,15 @@ class IncrementalExecutionResultTest extends Specification {
121
122
def "transform returns IncrementalExecutionResult"() {
123
when:
124
- def initial = newIncrementalExecutionResult().build()
+ def initial = newIncrementalExecutionResult().hasNext(true).build()
125
126
then:
127
- def transformed = initial.transform { }
+ def transformed = initial.transform { b ->
128
+ b.addExtension("ext-key", "ext-value")
129
+ b.hasNext(false)
130
+ }
131
transformed instanceof IncrementalExecutionResult
132
+ transformed.extensions == ["ext-key": "ext-value"]
133
+ transformed.hasNext == false
134
}
135
0 commit comments