Skip to content

Commit 205c49a

Browse files
Update prettier (#2263)
1 parent 70ec03d commit 205c49a

25 files changed

+782
-331
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@
5858
"flow-bin": "0.111.3",
5959
"mocha": "6.2.2",
6060
"nyc": "14.1.1",
61-
"prettier": "1.18.2"
61+
"prettier": "1.19.1"
6262
}
6363
}

src/language/__tests__/schema-parser-test.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,12 +1077,11 @@ input Hello {
10771077
});
10781078

10791079
const doc = parse(body, { allowLegacySDLImplementsInterfaces: true });
1080-
expect(toJSONDeep(doc)).to.have.deep.nested.property(
1081-
'definitions[0].interfaces',
1082-
[
1083-
typeNode('Wo', { start: 22, end: 24 }),
1084-
typeNode('rld', { start: 25, end: 28 }),
1085-
],
1086-
);
1080+
expect(
1081+
toJSONDeep(doc),
1082+
).to.have.deep.nested.property('definitions[0].interfaces', [
1083+
typeNode('Wo', { start: 22, end: 24 }),
1084+
typeNode('rld', { start: 25, end: 28 }),
1085+
]);
10871086
});
10881087
});

src/subscription/__tests__/mapAsyncIterator-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ describe('mapAsyncIterator', () => {
200200
throw new Error('Goodbye');
201201
}
202202

203-
const doubles = mapAsyncIterator(source(), x => x + x, error => error);
203+
const doubles = mapAsyncIterator(
204+
source(),
205+
x => x + x,
206+
error => error,
207+
);
204208

205209
expect(await doubles.next()).to.deep.equal({
206210
value: 'HelloHello',

src/type/__tests__/enumType-test.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ describe('Type System: Enum Values', () => {
279279
{
280280
message:
281281
'Variable "$color" of type "String!" used in position expecting type "Color".',
282-
locations: [{ line: 1, column: 8 }, { line: 1, column: 47 }],
282+
locations: [
283+
{ line: 1, column: 8 },
284+
{ line: 1, column: 47 },
285+
],
283286
},
284287
],
285288
});
@@ -294,7 +297,10 @@ describe('Type System: Enum Values', () => {
294297
{
295298
message:
296299
'Variable "$color" of type "Int!" used in position expecting type "Color".',
297-
locations: [{ line: 1, column: 8 }, { line: 1, column: 44 }],
300+
locations: [
301+
{ line: 1, column: 8 },
302+
{ line: 1, column: 44 },
303+
],
298304
},
299305
],
300306
});

0 commit comments

Comments
 (0)