Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
"flow-bin": "0.111.3",
"mocha": "6.2.2",
"nyc": "14.1.1",
"prettier": "1.18.2"
"prettier": "1.19.1"
}
}
13 changes: 6 additions & 7 deletions src/language/__tests__/schema-parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,12 +1077,11 @@ input Hello {
});

const doc = parse(body, { allowLegacySDLImplementsInterfaces: true });
expect(toJSONDeep(doc)).to.have.deep.nested.property(
'definitions[0].interfaces',
[
typeNode('Wo', { start: 22, end: 24 }),
typeNode('rld', { start: 25, end: 28 }),
],
);
expect(
toJSONDeep(doc),
).to.have.deep.nested.property('definitions[0].interfaces', [
typeNode('Wo', { start: 22, end: 24 }),
typeNode('rld', { start: 25, end: 28 }),
]);
});
});
6 changes: 5 additions & 1 deletion src/subscription/__tests__/mapAsyncIterator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ describe('mapAsyncIterator', () => {
throw new Error('Goodbye');
}

const doubles = mapAsyncIterator(source(), x => x + x, error => error);
const doubles = mapAsyncIterator(
source(),
x => x + x,
error => error,
);

expect(await doubles.next()).to.deep.equal({
value: 'HelloHello',
Expand Down
10 changes: 8 additions & 2 deletions src/type/__tests__/enumType-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ describe('Type System: Enum Values', () => {
{
message:
'Variable "$color" of type "String!" used in position expecting type "Color".',
locations: [{ line: 1, column: 8 }, { line: 1, column: 47 }],
locations: [
{ line: 1, column: 8 },
{ line: 1, column: 47 },
],
},
],
});
Expand All @@ -294,7 +297,10 @@ describe('Type System: Enum Values', () => {
{
message:
'Variable "$color" of type "Int!" used in position expecting type "Color".',
locations: [{ line: 1, column: 8 }, { line: 1, column: 44 }],
locations: [
{ line: 1, column: 8 },
{ line: 1, column: 44 },
],
},
],
});
Expand Down
Loading