File tree Expand file tree Collapse file tree
tools/proto-convert/test/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import {
1313 deleteMatchingKeys ,
1414 find_refs ,
1515 is_simple_ref ,
16- parsePathsConfig ,
1716 remove_unused
1817} from '../../src/utils/helper' ;
1918import { OpenAPIV3 } from 'openapi-types' ;
@@ -343,31 +342,6 @@ describe('is_simple_ref', () => {
343342 } ) ;
344343} ) ;
345344
346- describe ( 'parsePathsConfig' , ( ) => {
347- it ( 'should return default path when paths is undefined' , ( ) => {
348- const result = parsePathsConfig ( undefined ) ;
349-
350- expect ( result . size ) . toBe ( 1 ) ;
351- expect ( result . get ( '/_search' ) ) . toBeNull ( ) ;
352- } ) ;
353-
354- it ( 'should parse path with operation groups' , ( ) => {
355- const result = parsePathsConfig ( {
356- '/pets' : { 'x-operation-group' : [ 'pets.list' , 'pets.create' ] }
357- } ) ;
358-
359- expect ( result . get ( '/pets' ) ) . toEqual ( new Set ( [ 'pets.list' , 'pets.create' ] ) ) ;
360- } ) ;
361-
362- it ( 'should parse path without operation groups as null' , ( ) => {
363- const result = parsePathsConfig ( {
364- '/pets' : null
365- } ) ;
366-
367- expect ( result . get ( '/pets' ) ) . toBeNull ( ) ;
368- } ) ;
369- } ) ;
370-
371345describe ( 'remove_unused' , ( ) => {
372346 // Helper to create a spec with paths that reference the schema
373347 const createSpecWithPath = ( schema : any , schemaName : string = 'TestSchema' ) => ( {
You can’t perform that action at this time.
0 commit comments