Skip to content

Commit e1e34f8

Browse files
committed
prettier
1 parent 4d6d964 commit e1e34f8

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

packages/graphql-language-service/src/parser/__tests__/OnlineParser-test.ts

+23-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('onlineParser', () => {
6666

6767
t.eol();
6868
});
69-
69+
7070
it('parses schema extension bare', () => {
7171
const { t } = getUtils(`
7272
extend schema
@@ -110,6 +110,28 @@ describe('onlineParser', () => {
110110
t.eol();
111111
});
112112

113+
it('parses schema extension with directive applications without root operation definitions, followed by a type definition', () => {
114+
const { t } = getUtils(`
115+
extend schema @someDirective
116+
117+
type A { field: String }
118+
`);
119+
120+
t.keyword('extend', { kind: 'ExtendDef' });
121+
t.keyword('schema', { kind: 'SchemaDef' });
122+
expectDirective({ t }, { name: 'someDirective' });
123+
124+
t.keyword('type', { kind: 'ObjectTypeDef' });
125+
t.name('A');
126+
t.punctuation('{');
127+
t.property('field', { kind: 'FieldDef' });
128+
t.punctuation(':');
129+
t.name('String', { kind: 'NamedType' });
130+
t.punctuation('}');
131+
132+
t.eol();
133+
});
134+
113135
it('parses short query', () => {
114136
const { t } = getUtils(`
115137
{

0 commit comments

Comments
 (0)