Skip to content

Commit 740a777

Browse files
test: add missing assertion for axios parameter property absence
Adds assertFileNotContains check for the axios parameter property in erasable syntax mode to close the regression gap.
1 parent 8687f6f commit 740a777

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/axios/TypeScriptAxiosClientCodegenTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public void testUseErasableSyntaxConfig() throws IOException {
210210
TestUtils.assertFileContains(baseTsPath, "this.field = field;");
211211
// Should NOT contain parameter properties
212212
TestUtils.assertFileNotContains(baseTsPath, "protected basePath: string = BASE_PATH,");
213+
TestUtils.assertFileNotContains(baseTsPath, "protected axios: AxiosInstance = globalAxios");
213214
TestUtils.assertFileNotContains(baseTsPath, "public field: string,");
214215
} else {
215216
// Non-erasable syntax: uses parameter properties

0 commit comments

Comments
 (0)