@@ -19,7 +19,7 @@ function sortSDL(sdl) {
19
19
20
20
describe ( 'lexicographicSortSchema' , ( ) => {
21
21
it ( 'sort fields' , ( ) => {
22
- const sorted = sortSDL ( dedent `
22
+ const sorted = sortSDL ( `
23
23
input Bar {
24
24
barB: String
25
25
barA: String
@@ -69,7 +69,7 @@ describe('lexicographicSortSchema', () => {
69
69
} ) ;
70
70
71
71
it ( 'sort implemented interfaces' , ( ) => {
72
- const sorted = sortSDL ( dedent `
72
+ const sorted = sortSDL ( `
73
73
interface FooA {
74
74
dummy: String
75
75
}
@@ -107,7 +107,7 @@ describe('lexicographicSortSchema', () => {
107
107
} ) ;
108
108
109
109
it ( 'sort types in union' , ( ) => {
110
- const sorted = sortSDL ( dedent `
110
+ const sorted = sortSDL ( `
111
111
type FooA {
112
112
dummy: String
113
113
}
@@ -149,7 +149,7 @@ describe('lexicographicSortSchema', () => {
149
149
} ) ;
150
150
151
151
it ( 'sort enum values' , ( ) => {
152
- const sorted = sortSDL ( dedent `
152
+ const sorted = sortSDL ( `
153
153
enum Foo {
154
154
B
155
155
C
@@ -175,7 +175,7 @@ describe('lexicographicSortSchema', () => {
175
175
} ) ;
176
176
177
177
it ( 'sort field arguments' , ( ) => {
178
- const sorted = sortSDL ( dedent `
178
+ const sorted = sortSDL ( `
179
179
type Query {
180
180
dummy(argB: Int, argA: String, argC: Float): ID
181
181
}
@@ -189,7 +189,7 @@ describe('lexicographicSortSchema', () => {
189
189
} ) ;
190
190
191
191
it ( 'sort types' , ( ) => {
192
- const sorted = sortSDL ( dedent `
192
+ const sorted = sortSDL ( `
193
193
type Query {
194
194
dummy(arg1: FooF, arg2: FooA, arg3: FooG): FooD
195
195
}
@@ -251,7 +251,7 @@ describe('lexicographicSortSchema', () => {
251
251
} ) ;
252
252
253
253
it ( 'sort directive arguments' , ( ) => {
254
- const sorted = sortSDL ( dedent `
254
+ const sorted = sortSDL ( `
255
255
directive @test(argC: Float, argA: String, argB: Int) on FIELD
256
256
257
257
type Query {
@@ -269,7 +269,7 @@ describe('lexicographicSortSchema', () => {
269
269
} ) ;
270
270
271
271
it ( 'sort directive locations' , ( ) => {
272
- const sorted = sortSDL ( dedent `
272
+ const sorted = sortSDL ( `
273
273
directive @test(argC: Float, argA: String, argB: Int) on UNION | FIELD | ENUM
274
274
275
275
type Query {
@@ -287,7 +287,7 @@ describe('lexicographicSortSchema', () => {
287
287
} ) ;
288
288
289
289
it ( 'sort directives' , ( ) => {
290
- const sorted = sortSDL ( dedent `
290
+ const sorted = sortSDL ( `
291
291
directive @fooC on FIELD
292
292
293
293
directive @fooB on UNION
@@ -313,7 +313,7 @@ describe('lexicographicSortSchema', () => {
313
313
} ) ;
314
314
315
315
it ( 'sort recursive types' , ( ) => {
316
- const sorted = sortSDL ( dedent `
316
+ const sorted = sortSDL ( `
317
317
interface FooC {
318
318
fooB: FooB
319
319
fooA: FooA
0 commit comments