Skip to content

Commit 00774a9

Browse files
committed
tweaks
1 parent 38c808d commit 00774a9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/groovy/graphql/incremental/IncrementalExecutionResultTest.groovy

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,15 @@ class IncrementalExecutionResultTest extends Specification {
121121

122122
def "transform returns IncrementalExecutionResult"() {
123123
when:
124-
def initial = newIncrementalExecutionResult().build()
124+
def initial = newIncrementalExecutionResult().hasNext(true).build()
125125

126126
then:
127-
def transformed = initial.transform { }
127+
def transformed = initial.transform { b ->
128+
b.addExtension("ext-key", "ext-value")
129+
b.hasNext(false)
130+
}
128131
transformed instanceof IncrementalExecutionResult
132+
transformed.extensions == ["ext-key": "ext-value"]
133+
transformed.hasNext == false
129134
}
130135
}

0 commit comments

Comments
 (0)