From 2cd4cf916bb7bc3647d7b9cf4f8a6e7d45e87f3c Mon Sep 17 00:00:00 2001 From: devilkiller-ag Date: Wed, 27 Dec 2023 18:23:32 +0530 Subject: [PATCH] rectified bug in javascriot constraint test --- test/generators/javascript/constrainer/EnumConstrainer.spec.ts | 2 +- .../javascript/constrainer/ModelNameConstrainer.spec.ts | 2 +- .../javascript/constrainer/PropertyKeyConstrainer.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/generators/javascript/constrainer/EnumConstrainer.spec.ts b/test/generators/javascript/constrainer/EnumConstrainer.spec.ts index 53e11edcec..e5d08d778e 100644 --- a/test/generators/javascript/constrainer/EnumConstrainer.spec.ts +++ b/test/generators/javascript/constrainer/EnumConstrainer.spec.ts @@ -59,7 +59,7 @@ describe('EnumConstrainer', () => { }); expect(constrainedKey).toEqual(''); }); - test('should use constant naming format', () => { + test('should use pascal naming format', () => { const constrainedKey = JavaScriptDefaultConstraints.enumKey({ enumModel, constrainedEnumModel, diff --git a/test/generators/javascript/constrainer/ModelNameConstrainer.spec.ts b/test/generators/javascript/constrainer/ModelNameConstrainer.spec.ts index 5cae1a39f8..edd4531e86 100644 --- a/test/generators/javascript/constrainer/ModelNameConstrainer.spec.ts +++ b/test/generators/javascript/constrainer/ModelNameConstrainer.spec.ts @@ -23,7 +23,7 @@ describe('ModelNameConstrainer', () => { }); expect(constrainedKey).toEqual('Empty'); }); - test('should use constant naming format', () => { + test('should use pascal naming format', () => { const constrainedKey = JavaScriptDefaultConstraints.modelName({ modelName: 'some weird_value!"#2' }); diff --git a/test/generators/javascript/constrainer/PropertyKeyConstrainer.spec.ts b/test/generators/javascript/constrainer/PropertyKeyConstrainer.spec.ts index 330e8c36a6..f53bd83d87 100644 --- a/test/generators/javascript/constrainer/PropertyKeyConstrainer.spec.ts +++ b/test/generators/javascript/constrainer/PropertyKeyConstrainer.spec.ts @@ -52,7 +52,7 @@ describe('PropertyKeyConstrainer', () => { const constrainedKey = constrainPropertyName(''); expect(constrainedKey).toEqual('empty'); }); - test('should use constant naming format', () => { + test('should use pascal naming format', () => { const constrainedKey = constrainPropertyName('some weird_value!"#2'); expect(constrainedKey).toEqual('someWeirdValueExclamationQuotationHash_2'); });