@@ -19,7 +19,7 @@ describe("getDiff", () => {
1919
2020 const result = await getDiff (
2121 testRemoteSchemaLocation ,
22- testRemoteSchemaLocation
22+ testRemoteSchemaLocation ,
2323 ) ;
2424 expect ( result ) . toBeUndefined ( ) ;
2525 } ) ;
@@ -38,7 +38,7 @@ describe("getDiff", () => {
3838 headers : {
3939 Test : "test" ,
4040 } ,
41- }
41+ } ,
4242 ) ;
4343 expect ( result ) . toBeUndefined ( ) ;
4444 } ) ;
@@ -68,7 +68,7 @@ describe("getDiff", () => {
6868 Test : "right" ,
6969 } ,
7070 } ,
71- }
71+ } ,
7272 ) ;
7373 expect ( result ) . toBeUndefined ( ) ;
7474 } ) ;
@@ -103,7 +103,7 @@ describe("getDiff", () => {
103103 Test : "right" ,
104104 } ,
105105 } ,
106- }
106+ } ,
107107 ) ;
108108 expect ( result ) . toBeUndefined ( ) ;
109109 } ) ;
@@ -115,7 +115,7 @@ describe("getDiff", () => {
115115 . reply ( 404 , { } ) ;
116116
117117 return expect (
118- getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation )
118+ getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation ) ,
119119 ) . rejects . toThrow ( / C o u l d n o t o b t a i n i n t r o s p e c t i o n r e s u l t / ) ;
120120 } ) ;
121121
@@ -126,7 +126,7 @@ describe("getDiff", () => {
126126 . reply ( 200 , { invalid : "response" } ) ;
127127
128128 return expect (
129- getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation )
129+ getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation ) ,
130130 ) . rejects . toThrow ( / C o u l d n o t o b t a i n i n t r o s p e c t i o n r e s u l t / ) ;
131131 } ) ;
132132
@@ -139,7 +139,7 @@ describe("getDiff", () => {
139139 it ( "works with exact path to file" , async ( ) => {
140140 const localSchemaLocation = path . join (
141141 __dirname ,
142- "./fixtures/localSchema.graphql"
142+ "./fixtures/localSchema.graphql" ,
143143 ) ;
144144 const result = await getDiff ( localSchemaLocation , localSchemaLocation ) ;
145145 expect ( result ) . toBeUndefined ( ) ;
@@ -148,7 +148,7 @@ describe("getDiff", () => {
148148 it ( "works with glob pattern" , async ( ) => {
149149 const localSchemaLocation = path . join (
150150 __dirname ,
151- "./fixtures/**/localSchema.graphql"
151+ "./fixtures/**/localSchema.graphql" ,
152152 ) ;
153153 const result = await getDiff ( localSchemaLocation , localSchemaLocation ) ;
154154 expect ( result ) . toBeUndefined ( ) ;
@@ -158,21 +158,21 @@ describe("getDiff", () => {
158158 return expect (
159159 getDiff (
160160 path . join ( __dirname , "invalidLocation" ) ,
161- path . join ( __dirname , "invalidLocation" )
162- )
161+ path . join ( __dirname , "invalidLocation" ) ,
162+ ) ,
163163 ) . rejects . toThrow (
164- / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r s /
164+ / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r s / ,
165165 ) ;
166166 } ) ;
167167
168168 it ( "throws error on non-existent files in glob pattern" , ( ) => {
169169 return expect (
170170 getDiff (
171171 path . join ( __dirname , "/**/*.invalidgql" ) ,
172- path . join ( __dirname , "/**/*.invalidgql" )
173- )
172+ path . join ( __dirname , "/**/*.invalidgql" ) ,
173+ ) ,
174174 ) . rejects . toThrow (
175- / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r /
175+ / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r / ,
176176 ) ;
177177 } ) ;
178178 } ) ;
@@ -181,7 +181,7 @@ describe("getDiff", () => {
181181 it ( "returns the exact diff between two schemas" , async ( ) => {
182182 const result = await getDiff (
183183 path . join ( __dirname , "fixtures/localSchema.graphql" ) ,
184- path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" )
184+ path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" ) ,
185185 ) ;
186186
187187 expect ( result ) . toBeDefined ( ) ;
@@ -194,7 +194,7 @@ describe("getDiff", () => {
194194 it ( "returns the diff between two schemas with changed directives" , async ( ) => {
195195 const result = await getDiff (
196196 path . join ( __dirname , "fixtures/localSchemaDirective.graphql" ) ,
197- path . join ( __dirname , "fixtures/localSchemaDirectiveChanged.graphql" )
197+ path . join ( __dirname , "fixtures/localSchemaDirectiveChanged.graphql" ) ,
198198 ) ;
199199
200200 expect ( result ) . toBeDefined ( ) ;
@@ -207,7 +207,7 @@ describe("getDiff", () => {
207207 it ( "returns dangerous changes" , async ( ) => {
208208 const result = await getDiff (
209209 path . join ( __dirname , "fixtures/localSchema.graphql" ) ,
210- path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" )
210+ path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" ) ,
211211 ) ;
212212
213213 expect ( result ) . toBeDefined ( ) ;
@@ -225,7 +225,7 @@ describe("getDiff", () => {
225225 it ( "returns breaking changes" , async ( ) => {
226226 const result = await getDiff (
227227 path . join ( __dirname , "fixtures/localSchema.graphql" ) ,
228- path . join ( __dirname , "fixtures/localSchemaBreaking.graphql" )
228+ path . join ( __dirname , "fixtures/localSchemaBreaking.graphql" ) ,
229229 ) ;
230230
231231 expect ( result ) . toBeDefined ( ) ;
@@ -245,7 +245,7 @@ describe("getDiff", () => {
245245 it ( "returns diff between two unsorted, but otherwise equal schemas, when sorting not enabled" , async ( ) => {
246246 const result = await getDiff (
247247 path . join ( __dirname , "fixtures/localSchemaSorted.graphql" ) ,
248- path . join ( __dirname , "fixtures/localSchemaUnsorted.graphql" )
248+ path . join ( __dirname , "fixtures/localSchemaUnsorted.graphql" ) ,
249249 ) ;
250250
251251 expect ( result ) . toBeDefined ( ) ;
@@ -255,7 +255,7 @@ describe("getDiff", () => {
255255 const result = await getDiff (
256256 path . join ( __dirname , "fixtures/localSchemaSorted.graphql" ) ,
257257 path . join ( __dirname , "fixtures/localSchemaUnsorted.graphql" ) ,
258- { sortSchema : true }
258+ { sortSchema : true } ,
259259 ) ;
260260
261261 expect ( result ) . toBeUndefined ( ) ;
0 commit comments