@@ -222,7 +222,7 @@ function runTests(server: Server) {
222
222
} ) ;
223
223
} ) ;
224
224
225
- it ( 'Reports validation errors' , async ( ) => {
225
+ it ( 'reports validation errors' , async ( ) => {
226
226
const app = server ( ) ;
227
227
228
228
app . get ( urlString ( ) , graphqlHTTP ( { schema :TestSchema } ) ) ;
@@ -248,7 +248,7 @@ function runTests(server: Server) {
248
248
} ) ;
249
249
} ) ;
250
250
251
- it ( 'Errors when missing operation name' , async ( ) => {
251
+ it ( 'errors when missing operation name' , async ( ) => {
252
252
const app = server ( ) ;
253
253
254
254
app . get ( urlString ( ) , graphqlHTTP ( { schema :TestSchema } ) ) ;
@@ -273,7 +273,7 @@ function runTests(server: Server) {
273
273
} ) ;
274
274
} ) ;
275
275
276
- it ( 'Errors when sending a mutation via GET' , async ( ) => {
276
+ it ( 'errors when sending a mutation via GET' , async ( ) => {
277
277
const app = server ( ) ;
278
278
279
279
app . get ( urlString ( ) , graphqlHTTP ( { schema :TestSchema } ) ) ;
@@ -295,7 +295,7 @@ function runTests(server: Server) {
295
295
} ) ;
296
296
} ) ;
297
297
298
- it ( 'Errors when selecting a mutation within a GET' , async ( ) => {
298
+ it ( 'errors when selecting a mutation within a GET' , async ( ) => {
299
299
const app = server ( ) ;
300
300
301
301
app . get ( urlString ( ) , graphqlHTTP ( { schema :TestSchema } ) ) ;
@@ -321,7 +321,7 @@ function runTests(server: Server) {
321
321
} ) ;
322
322
} ) ;
323
323
324
- it ( 'Allows a mutation to exist within a GET' , async ( ) => {
324
+ it ( 'allows a mutation to exist within a GET' , async ( ) => {
325
325
const app = server ( ) ;
326
326
327
327
app . get ( urlString ( ) , graphqlHTTP ( { schema :TestSchema } ) ) ;
@@ -344,7 +344,7 @@ function runTests(server: Server) {
344
344
} ) ;
345
345
} ) ;
346
346
347
- it ( 'Allows async resolvers' , async ( ) => {
347
+ it ( 'allows async resolvers' , async ( ) => {
348
348
const schema = new GraphQLSchema ( {
349
349
query :new GraphQLObjectType ( {
350
350
name :'Query' ,
@@ -372,7 +372,7 @@ function runTests(server: Server) {
372
372
} ) ;
373
373
} ) ;
374
374
375
- it ( 'Allows passing in a context' , async ( ) => {
375
+ it ( 'allows passing in a context' , async ( ) => {
376
376
const schema = new GraphQLSchema ( {
377
377
query :new GraphQLObjectType ( {
378
378
name :'Query' ,
@@ -408,7 +408,7 @@ function runTests(server: Server) {
408
408
} ) ;
409
409
} ) ;
410
410
411
- it ( 'Allows passing in a fieldResolver' , async ( ) => {
411
+ it ( 'allows passing in a fieldResolver' , async ( ) => {
412
412
const schema = buildSchema ( `
413
413
type Query {
414
414
test: String
@@ -438,7 +438,7 @@ function runTests(server: Server) {
438
438
} ) ;
439
439
} ) ;
440
440
441
- it ( 'Allows passing in a typeResolver' , async ( ) => {
441
+ it ( 'allows passing in a typeResolver' , async ( ) => {
442
442
const schema = buildSchema ( `
443
443
type Foo {
444
444
foo: String
@@ -479,7 +479,7 @@ function runTests(server: Server) {
479
479
} ) ;
480
480
} ) ;
481
481
482
- it ( 'Uses request as context by default' , async ( ) => {
482
+ it ( 'uses request as context by default' , async ( ) => {
483
483
const schema = new GraphQLSchema ( {
484
484
query :new GraphQLObjectType ( {
485
485
name :'Query' ,
@@ -515,7 +515,7 @@ function runTests(server: Server) {
515
515
} ) ;
516
516
} ) ;
517
517
518
- it ( 'Allows returning an options Promise' , async ( ) => {
518
+ it ( 'allows returning an options Promise' , async ( ) => {
519
519
const app = server ( ) ;
520
520
521
521
app . get (
@@ -536,7 +536,7 @@ function runTests(server: Server) {
536
536
expect ( response . text ) . to . equal ( '{"data":{"test":"Hello World"}}' ) ;
537
537
} ) ;
538
538
539
- it ( 'Provides an options function with arguments' , async ( ) => {
539
+ it ( 'provides an options function with arguments' , async ( ) => {
540
540
const app = server ( ) ;
541
541
542
542
let seenRequest ;
@@ -571,7 +571,7 @@ function runTests(server: Server) {
571
571
} ) ;
572
572
} ) ;
573
573
574
- it ( 'Catches errors thrown from options function' , async ( ) => {
574
+ it ( 'catches errors thrown from options function' , async ( ) => {
575
575
const app = server ( ) ;
576
576
577
577
app . get (
@@ -613,7 +613,7 @@ function runTests(server: Server) {
613
613
expect ( response . text ) . to . equal ( '{"data":{"test":"Hello World"}}' ) ;
614
614
} ) ;
615
615
616
- it ( 'Allows sending a mutation via POST' , async ( ) => {
616
+ it ( 'allows sending a mutation via POST' , async ( ) => {
617
617
const app = server ( ) ;
618
618
619
619
app . post ( urlString ( ) , graphqlHTTP ( { schema :TestSchema } ) ) ;
@@ -1658,7 +1658,7 @@ function runTests(server: Server) {
1658
1658
} ) ;
1659
1659
1660
1660
describe ( 'Built-in GraphiQL support' , ( ) => {
1661
- it ( 'does notrenders GraphiQL if no opt-in' , async ( ) => {
1661
+ it ( 'does notrender GraphiQL if no opt-in' , async ( ) => {
1662
1662
const app = server ( ) ;
1663
1663
1664
1664
app . get ( urlString ( ) , graphqlHTTP ( { schema :TestSchema } ) ) ;
@@ -1829,7 +1829,7 @@ function runTests(server: Server) {
1829
1829
) ;
1830
1830
} ) ;
1831
1831
1832
- it ( 'GraphiQL renders provided variables' , async ( ) => {
1832
+ it ( 'renders provided variables within GraphiQL ' , async ( ) => {
1833
1833
const app = server ( ) ;
1834
1834
1835
1835
app . get (
@@ -1858,7 +1858,7 @@ function runTests(server: Server) {
1858
1858
) ;
1859
1859
} ) ;
1860
1860
1861
- it ( 'GraphiQL accepts an empty query' , async ( ) => {
1861
+ it ( 'accepts an empty query when rendering GraphiQL ' , async ( ) => {
1862
1862
const app = server ( ) ;
1863
1863
1864
1864
app . get (
@@ -1879,7 +1879,7 @@ function runTests(server: Server) {
1879
1879
expect ( response . text ) . to . include ( 'response: undefined' ) ;
1880
1880
} ) ;
1881
1881
1882
- it ( 'GraphiQL accepts a mutation query - does not execute it' , async ( ) => {
1882
+ it ( 'accepts a mutation query when rendering GraphiQL - does not execute it' , async ( ) => {
1883
1883
const app = server ( ) ;
1884
1884
1885
1885
app . get (
@@ -2115,7 +2115,7 @@ function runTests(server: Server) {
2115
2115
} ;
2116
2116
} ;
2117
2117
2118
- it ( 'Do not execute a query ifit do not pass the custom validation. ' , async ( ) => {
2118
+ it ( 'does not execute a query if the custom validation does not pass ' , async ( ) => {
2119
2119
const app = server ( ) ;
2120
2120
2121
2121
app . get (
@@ -2144,8 +2144,8 @@ function runTests(server: Server) {
2144
2144
} ) ;
2145
2145
} ) ;
2146
2146
2147
- describe ( 'Custom execute' , ( ) => {
2148
- it ( 'allow to replace default execute' , async ( ) => {
2147
+ describe ( 'Custom execute function ' , ( ) => {
2148
+ it ( 'allows to replacethe default execute function ' , async ( ) => {
2149
2149
const app = server ( ) ;
2150
2150
2151
2151
let seenExecuteArgs ;
@@ -2247,7 +2247,7 @@ function runTests(server: Server) {
2247
2247
} ) ;
2248
2248
2249
2249
describe ( 'Custom result extensions' , ( ) => {
2250
- it ( 'allowsfor adding extensions' , async ( ) => {
2250
+ it ( 'allows adding extensions' , async ( ) => {
2251
2251
const app = server ( ) ;
2252
2252
2253
2253
app . get (
@@ -2273,7 +2273,7 @@ function runTests(server: Server) {
2273
2273
) ;
2274
2274
} ) ;
2275
2275
2276
- it ( 'extensionshave access to initial GraphQL result' , async ( ) => {
2276
+ it ( 'gives extensions access to the initial GraphQL result' , async ( ) => {
2277
2277
const app = server ( ) ;
2278
2278
2279
2279
app . get (
@@ -2314,7 +2314,7 @@ function runTests(server: Server) {
2314
2314
} ) ;
2315
2315
} ) ;
2316
2316
2317
- it ( 'extension functionmay be async' , async ( ) => {
2317
+ it ( 'allows the extensions functionto be async' , async ( ) => {
2318
2318
const app = server ( ) ;
2319
2319
2320
2320
app . get (