Skip to content

Commit fcbd981

Browse files
committed
Lowercase StarWarsSchema.
1 parent 76d0c09 commit fcbd981

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

Tests/GraphQLTests/StarWarsTests/StarWarsIntrospectionTests.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class StarWarsIntrospectionTests : XCTestCase {
7373
]
7474
)
7575

76-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
76+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
7777
XCTAssertEqual(result, expected)
7878
} catch {
7979
print(error)
@@ -104,7 +104,7 @@ class StarWarsIntrospectionTests : XCTestCase {
104104
]
105105
)
106106

107-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
107+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
108108
XCTAssertEqual(result, expected)
109109
}
110110

@@ -128,7 +128,7 @@ class StarWarsIntrospectionTests : XCTestCase {
128128
]
129129
)
130130

131-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
131+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
132132
XCTAssertEqual(result, expected)
133133
}
134134

@@ -154,7 +154,7 @@ class StarWarsIntrospectionTests : XCTestCase {
154154
]
155155
)
156156

157-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
157+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
158158
XCTAssertEqual(result, expected)
159159
}
160160

@@ -180,7 +180,7 @@ class StarWarsIntrospectionTests : XCTestCase {
180180
]
181181
)
182182

183-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
183+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
184184
XCTAssertEqual(result, expected)
185185
}
186186

@@ -255,7 +255,7 @@ class StarWarsIntrospectionTests : XCTestCase {
255255
]
256256
)
257257

258-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
258+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
259259
XCTAssertEqual(result, expected)
260260
}
261261

@@ -349,7 +349,7 @@ class StarWarsIntrospectionTests : XCTestCase {
349349
]
350350
)
351351

352-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
352+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
353353
XCTAssertEqual(result, expected)
354354
}
355355

@@ -444,7 +444,7 @@ class StarWarsIntrospectionTests : XCTestCase {
444444
]
445445
)
446446

447-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
447+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
448448
XCTAssertEqual(result, expected)
449449
}
450450

@@ -470,7 +470,7 @@ class StarWarsIntrospectionTests : XCTestCase {
470470
]
471471
)
472472

473-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
473+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
474474
XCTAssertEqual(result, expected)
475475
}
476476
}

Tests/GraphQLTests/StarWarsTests/StarWarsQueryTests.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class StarWarsQueryTests : XCTestCase {
2828
)
2929

3030
let result = try graphql(
31-
schema: StarWarsSchema,
31+
schema: starWarsSchema,
3232
request: query,
3333
eventLoopGroup: eventLoopGroup
3434
).wait()
@@ -70,7 +70,7 @@ class StarWarsQueryTests : XCTestCase {
7070
)
7171

7272
let result = try graphql(
73-
schema: StarWarsSchema,
73+
schema: starWarsSchema,
7474
request: query,
7575
eventLoopGroup: eventLoopGroup
7676
).wait()
@@ -139,7 +139,7 @@ class StarWarsQueryTests : XCTestCase {
139139
]
140140
)
141141

142-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
142+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
143143
XCTAssertEqual(result, expected)
144144
}
145145

@@ -163,7 +163,7 @@ class StarWarsQueryTests : XCTestCase {
163163
]
164164
)
165165

166-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
166+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
167167
XCTAssertEqual(result, expected)
168168
}
169169

@@ -194,7 +194,7 @@ class StarWarsQueryTests : XCTestCase {
194194
]
195195
)
196196

197-
result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
197+
result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
198198
XCTAssertEqual(result, expected)
199199

200200
// or we can pass "EMPIRE" and expect Luke
@@ -210,7 +210,7 @@ class StarWarsQueryTests : XCTestCase {
210210
]
211211
)
212212

213-
result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
213+
result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
214214
XCTAssertEqual(result, expected)
215215
}
216216

@@ -242,7 +242,7 @@ class StarWarsQueryTests : XCTestCase {
242242
]
243243
)
244244

245-
result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
245+
result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
246246
XCTAssertEqual(result, expected)
247247

248248
params = [
@@ -257,7 +257,7 @@ class StarWarsQueryTests : XCTestCase {
257257
]
258258
)
259259

260-
result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
260+
result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
261261
XCTAssertEqual(result, expected)
262262

263263

@@ -271,7 +271,7 @@ class StarWarsQueryTests : XCTestCase {
271271
]
272272
)
273273

274-
result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
274+
result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup, variableValues: params).wait()
275275
XCTAssertEqual(result, expected)
276276
}
277277

@@ -295,7 +295,7 @@ class StarWarsQueryTests : XCTestCase {
295295
]
296296
)
297297

298-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
298+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
299299
XCTAssertEqual(result, expected)
300300
}
301301

@@ -325,7 +325,7 @@ class StarWarsQueryTests : XCTestCase {
325325
]
326326
)
327327

328-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
328+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
329329
XCTAssertEqual(result, expected)
330330
}
331331

@@ -359,7 +359,7 @@ class StarWarsQueryTests : XCTestCase {
359359
]
360360
)
361361

362-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
362+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
363363
XCTAssertEqual(result, expected)
364364
}
365365

@@ -395,7 +395,7 @@ class StarWarsQueryTests : XCTestCase {
395395
]
396396
)
397397

398-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
398+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
399399
XCTAssertEqual(result, expected)
400400
}
401401

@@ -422,7 +422,7 @@ class StarWarsQueryTests : XCTestCase {
422422
)
423423

424424
let result = try graphql(
425-
schema: StarWarsSchema,
425+
schema: starWarsSchema,
426426
request: query,
427427
eventLoopGroup: eventLoopGroup
428428
).wait()
@@ -452,7 +452,7 @@ class StarWarsQueryTests : XCTestCase {
452452
]
453453
)
454454

455-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
455+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
456456
XCTAssertEqual(result, expected)
457457
}
458458

@@ -485,7 +485,7 @@ class StarWarsQueryTests : XCTestCase {
485485
]
486486
)
487487

488-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
488+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
489489
XCTAssertEqual(result, expected)
490490
}
491491

@@ -544,7 +544,7 @@ class StarWarsQueryTests : XCTestCase {
544544
]
545545
)
546546

547-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
547+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
548548
XCTAssertEqual(result, expected)
549549
}
550550

@@ -577,7 +577,7 @@ class StarWarsQueryTests : XCTestCase {
577577
]
578578
)
579579

580-
let result = try graphql(schema: StarWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
580+
let result = try graphql(schema: starWarsSchema, request: query, eventLoopGroup: eventLoopGroup).wait()
581581
XCTAssertEqual(result, expected)
582582
}
583583

Tests/GraphQLTests/StarWarsTests/StarWarsSchema.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ let QueryType = try! GraphQLObjectType(
303303
* Finally, we construct our schema (whose starting query type is the query
304304
* type we defined above) and export it.
305305
*/
306-
let StarWarsSchema = try! GraphQLSchema(
306+
let starWarsSchema = try! GraphQLSchema(
307307
query: QueryType,
308308
types: [HumanType, DroidType]
309309
)

Tests/GraphQLTests/StarWarsTests/StarWarsValidationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import XCTest
77
func validationErrors(query: String) throws -> [GraphQLError] {
88
let source = Source(body: query, name: "StarWars.graphql")
99
let ast = try parse(source: source)
10-
return validate(schema: StarWarsSchema, ast: ast)
10+
return validate(schema: starWarsSchema, ast: ast)
1111
}
1212

1313
class StarWarsValidationTests : XCTestCase {

0 commit comments

Comments
 (0)