Skip to content

Commit 8011f6e

Browse files
committed
npm run prettier
1 parent c86e332 commit 8011f6e

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/type/__tests__/introspection-test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,13 +1799,18 @@ describe('Introspection', () => {
17991799
});
18001800

18011801
it('identifies deprecated directives', () => {
1802-
const schema = buildASTSchema(parse(`
1802+
const schema = buildASTSchema(
1803+
parse(
1804+
`
18031805
type Query {
18041806
someField: String
18051807
}
18061808
directive @isNotDeprecated on FIELD_DEFINITION
18071809
directive @isDeprecated @deprecated(reason: "No longer supported") on FIELD_DEFINITION
1808-
`, { experimentalDirectivesOnDirectiveDefinitions: true }));
1810+
`,
1811+
{ experimentalDirectivesOnDirectiveDefinitions: true },
1812+
),
1813+
);
18091814

18101815
const source = `
18111816
{

src/utilities/__tests__/extendSchema-test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,9 +1321,12 @@ describe('extendSchema', () => {
13211321

13221322
it('extend directive to make it deprecated', () => {
13231323
const schema = buildSchema('directive @isDeprecated on FIELD_DEFINITION');
1324-
const extendAST = parse(`
1324+
const extendAST = parse(
1325+
`
13251326
extend directive @isDeprecated @deprecated(reason: "use another directive")
1326-
`, { experimentalDirectivesOnDirectiveDefinitions: true });
1327+
`,
1328+
{ experimentalDirectivesOnDirectiveDefinitions: true },
1329+
);
13271330
const extendedSchema = extendSchema(schema, extendAST);
13281331

13291332
const someDirective = assertDirective(

0 commit comments

Comments
 (0)