File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ describe('bin', () => {
34
34
'true' ,
35
35
'--indent' ,
36
36
'4' ,
37
- '--postfix ' ,
37
+ '--postfixServices ' ,
38
38
'Service' ,
39
+ '--postfixModels' ,
40
+ 'Dto' ,
39
41
] ) ;
40
42
expect ( result . stdout . toString ( ) ) . toBe ( '' ) ;
41
43
expect ( result . stderr . toString ( ) ) . toBe ( '' ) ;
@@ -67,4 +69,18 @@ describe('bin', () => {
67
69
expect ( result . stdout . toString ( ) ) . toContain ( `-o, --output <value>` ) ;
68
70
expect ( result . stderr . toString ( ) ) . toBe ( '' ) ;
69
71
} ) ;
72
+
73
+ it ( 'should still support the deprecated --postfix paramtert' , ( ) => {
74
+ const result = crossSpawn . sync ( 'node' , [
75
+ './bin/index.js' ,
76
+ '--input' ,
77
+ './test/spec/v3.json' ,
78
+ '--output' ,
79
+ './test/generated/bin' ,
80
+ '--postfix' ,
81
+ 'Service' ,
82
+ ] ) ;
83
+ expect ( result . stdout . toString ( ) ) . toBe ( '' ) ;
84
+ expect ( result . stderr . toString ( ) ) . toBe ( '' ) ;
85
+ } ) ;
70
86
} ) ;
You can’t perform that action at this time.
0 commit comments