@@ -57,28 +57,28 @@ describe('getType', () => {
5757
5858 it ( 'should support dot' , ( ) => {
5959 const type = getType ( '#/components/schemas/model.000' ) ;
60- expect ( type . type ) . toEqual ( 'model_000 ' ) ;
61- expect ( type . base ) . toEqual ( 'model_000 ' ) ;
60+ expect ( type . type ) . toEqual ( 'Model000 ' ) ;
61+ expect ( type . base ) . toEqual ( 'Model000 ' ) ;
6262 expect ( type . template ) . toEqual ( null ) ;
63- expect ( type . imports ) . toEqual ( [ 'model_000 ' ] ) ;
63+ expect ( type . imports ) . toEqual ( [ 'Model000 ' ] ) ;
6464 expect ( type . isNullable ) . toEqual ( false ) ;
6565 } ) ;
6666
6767 it ( 'should support dashes' , ( ) => {
6868 const type = getType ( '#/components/schemas/some_special-schema' ) ;
69- expect ( type . type ) . toEqual ( 'some_special_schema ' ) ;
70- expect ( type . base ) . toEqual ( 'some_special_schema ' ) ;
69+ expect ( type . type ) . toEqual ( 'SomeSpecialSchema ' ) ;
70+ expect ( type . base ) . toEqual ( 'SomeSpecialSchema ' ) ;
7171 expect ( type . template ) . toEqual ( null ) ;
72- expect ( type . imports ) . toEqual ( [ 'some_special_schema ' ] ) ;
72+ expect ( type . imports ) . toEqual ( [ 'SomeSpecialSchema ' ] ) ;
7373 expect ( type . isNullable ) . toEqual ( false ) ;
7474 } ) ;
7575
7676 it ( 'should support dollar sign' , ( ) => {
7777 const type = getType ( '#/components/schemas/$some+special+schema' ) ;
78- expect ( type . type ) . toEqual ( '$some_special_schema ' ) ;
79- expect ( type . base ) . toEqual ( '$some_special_schema ' ) ;
78+ expect ( type . type ) . toEqual ( '$SomeSpecialSchema ' ) ;
79+ expect ( type . base ) . toEqual ( '$SomeSpecialSchema ' ) ;
8080 expect ( type . template ) . toEqual ( null ) ;
81- expect ( type . imports ) . toEqual ( [ '$some_special_schema ' ] ) ;
81+ expect ( type . imports ) . toEqual ( [ '$SomeSpecialSchema ' ] ) ;
8282 expect ( type . isNullable ) . toEqual ( false ) ;
8383 } ) ;
8484
0 commit comments