diff --git a/bin/index.spec.js b/bin/index.spec.js index 28963181..480a091e 100755 --- a/bin/index.spec.js +++ b/bin/index.spec.js @@ -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 `); 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(''); + }); });