From 7fadae6c0e51cdcde2162b6a7cbb1ec35603a6de Mon Sep 17 00:00:00 2001 From: thesn10 <38666407+thesn10@users.noreply.github.com> Date: Tue, 26 Nov 2024 21:54:13 +0100 Subject: [PATCH] #19909 fix tests --- .../codegen/typescript/fetch/TypeScriptFetchModelTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/fetch/TypeScriptFetchModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/fetch/TypeScriptFetchModelTest.java index a7a3e644f0bd0..4529c52d840ac 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/fetch/TypeScriptFetchModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/fetch/TypeScriptFetchModelTest.java @@ -375,7 +375,7 @@ public void enumArrayModelTest() { Schema property = (Schema) schema.getProperties().get("array_enum"); CodegenProperty prope = codegen.fromProperty("array_enum", property); codegen.updateCodegenPropertyEnum(prope); - Assert.assertEquals(prope.datatypeWithEnum, "Array"); + Assert.assertEquals(prope.datatypeWithEnum, "Array<\"fish\" | \"crab\">"); Assert.assertEquals(prope.enumName, "ArrayEnumEnum"); Assert.assertTrue(prope.isEnum); Assert.assertEquals(prope.allowableValues.get("values"), Arrays.asList("fish", "crab")); @@ -391,7 +391,7 @@ public void enumArrayModelTest() { Assert.assertEquals(prope.allowableValues.get("enumVars"), Arrays.asList(fish, crab)); // assert inner items - Assert.assertEquals(prope.datatypeWithEnum, "Array"); + Assert.assertEquals(prope.datatypeWithEnum, "Array<\"fish\" | \"crab\">"); Assert.assertEquals(prope.enumName, "ArrayEnumEnum"); Assert.assertTrue(prope.items.isEnum); Assert.assertEquals(prope.items.allowableValues.get("values"), Arrays.asList("fish", "crab"));