Skip to content

Commit 6f11b12

Browse files
committed
test: Update tests with new parameters
1 parent 10181b7 commit 6f11b12

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

bin/index.spec.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ describe('bin', () => {
3434
'true',
3535
'--indent',
3636
'4',
37-
'--postfix',
37+
'--postfixServices',
3838
'Service',
39+
'--postfixModels',
40+
'Dto',
3941
]);
4042
expect(result.stdout.toString()).toBe('');
4143
expect(result.stderr.toString()).toBe('');
@@ -67,4 +69,18 @@ describe('bin', () => {
6769
expect(result.stdout.toString()).toContain(`-o, --output <value>`);
6870
expect(result.stderr.toString()).toBe('');
6971
});
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+
});
7086
});

0 commit comments

Comments
 (0)