mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
test: Update tests with new parameters
This commit is contained in:
parent
10181b7208
commit
6f11b12fac
@ -34,8 +34,10 @@ describe('bin', () => {
|
||||
'true',
|
||||
'--indent',
|
||||
'4',
|
||||
'--postfix',
|
||||
'--postfixServices',
|
||||
'Service',
|
||||
'--postfixModels',
|
||||
'Dto',
|
||||
]);
|
||||
expect(result.stdout.toString()).toBe('');
|
||||
expect(result.stderr.toString()).toBe('');
|
||||
@ -67,4 +69,18 @@ describe('bin', () => {
|
||||
expect(result.stdout.toString()).toContain(`-o, --output <value>`);
|
||||
expect(result.stderr.toString()).toBe('');
|
||||
});
|
||||
|
||||
it('should still support the deprecated --postfix paramtert', () => {
|
||||
const result = crossSpawn.sync('node', [
|
||||
'./bin/index.js',
|
||||
'--input',
|
||||
'./test/spec/v3.json',
|
||||
'--output',
|
||||
'./test/generated/bin',
|
||||
'--postfix',
|
||||
'Service',
|
||||
]);
|
||||
expect(result.stdout.toString()).toBe('');
|
||||
expect(result.stderr.toString()).toBe('');
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user