Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Jul 31, 2024
1 parent 4d6d964 commit e1e34f8
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('onlineParser', () => {

t.eol();
});

it('parses schema extension bare', () => {
const { t } = getUtils(`
extend schema
Expand Down Expand Up @@ -110,6 +110,28 @@ describe('onlineParser', () => {
t.eol();
});

it('parses schema extension with directive applications without root operation definitions, followed by a type definition', () => {
const { t } = getUtils(`
extend schema @someDirective
type A { field: String }
`);

t.keyword('extend', { kind: 'ExtendDef' });
t.keyword('schema', { kind: 'SchemaDef' });
expectDirective({ t }, { name: 'someDirective' });

t.keyword('type', { kind: 'ObjectTypeDef' });
t.name('A');
t.punctuation('{');
t.property('field', { kind: 'FieldDef' });
t.punctuation(':');
t.name('String', { kind: 'NamedType' });
t.punctuation('}');

t.eol();
});

it('parses short query', () => {
const { t } = getUtils(`
{
Expand Down

0 comments on commit e1e34f8

Please sign in to comment.