We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89425b commit bd2cd6bCopy full SHA for bd2cd6b
src/language/__tests__/parser.js
@@ -69,6 +69,12 @@ fragment MissingOn Type
69
).to.throw('Syntax Error GraphQL (1:10) Unexpected Name "on"');
70
});
71
72
+ it('does not accept fragments spread of "on"', () => {
73
+ expect(
74
+ () => parse('{ ...on }')
75
+ ).to.throw('Syntax Error GraphQL (1:9) Expected Name, found }');
76
+ });
77
+
78
var kitchenSink = readFileSync(
79
join(__dirname, '/kitchen-sink.graphql'),
80
{ encoding: 'utf8' }
0 commit comments