Skip to content

Commit b698ff1

Browse files
committed
fix ut
Signed-off-by: xil <fridalu66@gmail.com>
1 parent 5c00229 commit b698ff1

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

tools/proto-convert/test/utils/helper.test.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff 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';
1918
import { 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-
371345
describe('remove_unused', () => {
372346
// Helper to create a spec with paths that reference the schema
373347
const createSpecWithPath = (schema: any, schemaName: string = 'TestSchema') => ({

0 commit comments

Comments
 (0)