@@ -272,15 +272,15 @@ describe('collect refs', () => {
272272 expect ( resolvedRefs ) . toBeDefined ( ) ;
273273 expect ( Array . from ( resolvedRefs . keys ( ) ) . map ( ( ref ) => ref . substring ( cwd . length + 1 ) ) )
274274 . toMatchInlineSnapshot ( `
275- [
276- "openapi.yaml::#/components/schemas/Local",
277- "openapi.yaml::#/components/schemas/Local/properties/string",
278- "openapi.yaml::./External.yaml#/properties/string",
279- "openapi.yaml::./External.yaml",
280- "External.yaml::./External2.yaml",
281- "External2.yaml::./External.yaml#/properties",
282- ]
283- ` ) ;
275+ [
276+ "openapi.yaml::#/components/schemas/Local",
277+ "openapi.yaml::#/components/schemas/Local/properties/string",
278+ "openapi.yaml::./External.yaml#/properties/string",
279+ "openapi.yaml::./External.yaml",
280+ "External.yaml::./External2.yaml",
281+ "External2.yaml::./External.yaml#/properties",
282+ ]
283+ ` ) ;
284284
285285 expect ( Array . from ( resolvedRefs . values ( ) ) . map ( ( val ) => val . node ) ) . toMatchInlineSnapshot ( `
286286 [
@@ -402,8 +402,8 @@ describe('collect refs', () => {
402402 expect ( resolvedRefs ) . toBeDefined ( ) ;
403403 expect ( resolvedRefs . size ) . toEqual ( 3 ) ;
404404 expect ( Array . from ( resolvedRefs . keys ( ) ) . map ( ( ref ) => ref . substring ( cwd . length + 1 ) ) ) . toEqual ( [
405- 'foobar .yaml::./schemas.yaml#/schemas' ,
406- 'foobar .yaml::a.yaml' ,
405+ 'transitive/components .yaml::./schemas.yaml#/schemas' ,
406+ 'transitive/schemas .yaml::a.yaml' ,
407407 'foobar.yaml::./transitive/components.yaml#/components/schemas/a' ,
408408 ] ) ;
409409
0 commit comments