Skip to content

Commit f685fba

Browse files
committed
async space lint
1 parent 76fd218 commit f685fba

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

src/__tests__/starWarsQueryTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ describe('Star Wars Query Tests', () => {
267267
});
268268

269269
describe('Uses fragments to express more complex queries', () => {
270-
it('Allows us to query using duplicated content', async() => {
270+
it('Allows us to query using duplicated content', async () => {
271271
var query = `
272272
query DuplicateFields {
273273
luke: human(id: "1000") {

src/executor/__tests__/executor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ describe('Execute: Handles basic execution tasks', () => {
214214
expect(gotHere).to.equal(true);
215215
});
216216

217-
it('correctly threads arguments', async() => {
217+
it('correctly threads arguments', async () => {
218218
var doc = `
219219
query Example {
220220
b(numArg: 123, stringArg: "foo")
@@ -263,7 +263,7 @@ describe('Execute: Handles basic execution tasks', () => {
263263
syncError() {
264264
throw new Error('Error getting syncError');
265265
},
266-
async() {
266+
async () {
267267
return new Promise(resolve => resolve('async'));
268268
},
269269
asyncReject() {

src/executor/__tests__/nonnull.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ var schema = new GraphQLSchema({
123123

124124
describe('Execute: handles non-nullable types', () => {
125125

126-
it('nulls a nullable field that throws synchronously', async() => {
126+
it('nulls a nullable field that throws synchronously', async () => {
127127
var doc = `
128128
query Q {
129129
sync
@@ -147,7 +147,7 @@ describe('Execute: handles non-nullable types', () => {
147147
).to.containSubset(expected);
148148
});
149149

150-
it('nulls a nullable field that throws in a promise', async() => {
150+
it('nulls a nullable field that throws in a promise', async () => {
151151
var doc = `
152152
query Q {
153153
promise
@@ -171,7 +171,7 @@ describe('Execute: handles non-nullable types', () => {
171171
).to.containSubset(expected);
172172
});
173173

174-
it('nulls a synchronously returned object that contains a non-nullable field that throws synchronously', async() => {
174+
it('nulls a synchronously returned object that contains a non-nullable field that throws synchronously', async () => {
175175
var doc = `
176176
query Q {
177177
nest {
@@ -197,7 +197,7 @@ describe('Execute: handles non-nullable types', () => {
197197
).to.containSubset(expected);
198198
});
199199

200-
it('nulls a synchronously returned object that contains a non-nullable field that throws in a promise', async() => {
200+
it('nulls a synchronously returned object that contains a non-nullable field that throws in a promise', async () => {
201201
var doc = `
202202
query Q {
203203
nest {
@@ -223,7 +223,7 @@ describe('Execute: handles non-nullable types', () => {
223223
).to.containSubset(expected);
224224
});
225225

226-
it('nulls an object returned in a promise that contains a non-nullable field that throws synchronously', async() => {
226+
it('nulls an object returned in a promise that contains a non-nullable field that throws synchronously', async () => {
227227
var doc = `
228228
query Q {
229229
promiseNest {
@@ -249,7 +249,7 @@ describe('Execute: handles non-nullable types', () => {
249249
).to.containSubset(expected);
250250
});
251251

252-
it('nulls an object returned in a promise that contains a non-nullable field that throws in a promise', async() => {
252+
it('nulls an object returned in a promise that contains a non-nullable field that throws in a promise', async () => {
253253
var doc = `
254254
query Q {
255255
promiseNest {
@@ -275,7 +275,7 @@ describe('Execute: handles non-nullable types', () => {
275275
).to.containSubset(expected);
276276
});
277277

278-
it('nulls a complex tree of nullable fields that throw', async() => {
278+
it('nulls a complex tree of nullable fields that throw', async () => {
279279
var doc = `
280280
query Q {
281281
nest {
@@ -367,7 +367,7 @@ describe('Execute: handles non-nullable types', () => {
367367
).to.containSubset(expected);
368368
});
369369

370-
it('nulls the first nullable object after a field throws in a long chain of fields that are non-null', async() => {
370+
it('nulls the first nullable object after a field throws in a long chain of fields that are non-null', async () => {
371371
var doc = `
372372
query Q {
373373
nest {
@@ -444,7 +444,7 @@ describe('Execute: handles non-nullable types', () => {
444444
});
445445

446446

447-
it('nulls a nullable field that synchronously returns null', async() => {
447+
it('nulls a nullable field that synchronously returns null', async () => {
448448
var doc = `
449449
query Q {
450450
sync
@@ -464,7 +464,7 @@ describe('Execute: handles non-nullable types', () => {
464464
).to.containSubset(expected);
465465
});
466466

467-
it('nulls a nullable field that returns null in a promise', async() => {
467+
it('nulls a nullable field that returns null in a promise', async () => {
468468
var doc = `
469469
query Q {
470470
promise
@@ -484,7 +484,7 @@ describe('Execute: handles non-nullable types', () => {
484484
).to.containSubset(expected);
485485
});
486486

487-
it('nulls a synchronously returned object that contains a non-nullable field that returns null synchronously', async() => {
487+
it('nulls a synchronously returned object that contains a non-nullable field that returns null synchronously', async () => {
488488
var doc = `
489489
query Q {
490490
nest {
@@ -510,7 +510,7 @@ describe('Execute: handles non-nullable types', () => {
510510
).to.containSubset(expected);
511511
});
512512

513-
it('nulls a synchronously returned object that contains a non-nullable field that returns null in a promise', async() => {
513+
it('nulls a synchronously returned object that contains a non-nullable field that returns null in a promise', async () => {
514514
var doc = `
515515
query Q {
516516
nest {
@@ -536,7 +536,7 @@ describe('Execute: handles non-nullable types', () => {
536536
).to.containSubset(expected);
537537
});
538538

539-
it('nulls an object returned in a promise that contains a non-nullable field that returns null synchronously', async() => {
539+
it('nulls an object returned in a promise that contains a non-nullable field that returns null synchronously', async () => {
540540
var doc = `
541541
query Q {
542542
promiseNest {
@@ -562,7 +562,7 @@ describe('Execute: handles non-nullable types', () => {
562562
).to.containSubset(expected);
563563
});
564564

565-
it('nulls an object returned in a promise that contains a non-nullable field that returns null ina a promise', async() => {
565+
it('nulls an object returned in a promise that contains a non-nullable field that returns null ina a promise', async () => {
566566
var doc = `
567567
query Q {
568568
promiseNest {
@@ -588,7 +588,7 @@ describe('Execute: handles non-nullable types', () => {
588588
).to.containSubset(expected);
589589
});
590590

591-
it('nulls a complex tree of nullable fields that return null', async() => {
591+
it('nulls a complex tree of nullable fields that return null', async () => {
592592
var doc = `
593593
query Q {
594594
nest {
@@ -654,7 +654,7 @@ describe('Execute: handles non-nullable types', () => {
654654
).to.containSubset(expected);
655655
});
656656

657-
it('nulls the first nullable object after a field returns null in a long chain of fields that are non-null', async() => {
657+
it('nulls the first nullable object after a field returns null in a long chain of fields that are non-null', async () => {
658658
var doc = `
659659
query Q {
660660
nest {
@@ -730,7 +730,7 @@ describe('Execute: handles non-nullable types', () => {
730730
).to.containSubset(expected);
731731
});
732732

733-
it('nulls the top level if sync non-nullable field throws', async() => {
733+
it('nulls the top level if sync non-nullable field throws', async () => {
734734
var doc = `
735735
query Q { nonNullSync }
736736
`;
@@ -748,7 +748,7 @@ describe('Execute: handles non-nullable types', () => {
748748
).to.containSubset(expected);
749749
});
750750

751-
it('nulls the top level if async non-nullable field errors', async() => {
751+
it('nulls the top level if async non-nullable field errors', async () => {
752752
var doc = `
753753
query Q { nonNullPromise }
754754
`;
@@ -766,7 +766,7 @@ describe('Execute: handles non-nullable types', () => {
766766
).to.containSubset(expected);
767767
});
768768

769-
it('nulls the top level if sync non-nullable field returns null', async() => {
769+
it('nulls the top level if sync non-nullable field returns null', async () => {
770770
var doc = `
771771
query Q { nonNullSync }
772772
`;
@@ -784,7 +784,7 @@ describe('Execute: handles non-nullable types', () => {
784784
).to.containSubset(expected);
785785
});
786786

787-
it('nulls the top level if async non-nullable field resolves null', async() => {
787+
it('nulls the top level if async non-nullable field resolves null', async () => {
788788
var doc = `
789789
query Q { nonNullPromise }
790790
`;

0 commit comments

Comments
 (0)