forked from loafle/openapi-generator-original
remove trailing space in ts fetech api, add npm test to ci (#4348)
This commit is contained in:
parent
535b233ff7
commit
af2db27a83
@ -94,8 +94,10 @@ export const {{classname}}FetchParamCreactor = {
|
|||||||
let contentTypeHeader: Dictionary<string>;
|
let contentTypeHeader: Dictionary<string>;
|
||||||
{{#hasFormParams}}
|
{{#hasFormParams}}
|
||||||
contentTypeHeader = { "Content-Type": "application/x-www-form-urlencoded" };
|
contentTypeHeader = { "Content-Type": "application/x-www-form-urlencoded" };
|
||||||
fetchOptions.body = querystring.stringify({ {{#formParams}}
|
fetchOptions.body = querystring.stringify({
|
||||||
"{{baseName}}": params["{{paramName}}"],{{/formParams}}
|
{{#formParams}}
|
||||||
|
"{{baseName}}": params["{{paramName}}"],
|
||||||
|
{{/formParams}}
|
||||||
});
|
});
|
||||||
{{/hasFormParams}}
|
{{/hasFormParams}}
|
||||||
{{#hasBodyParam}}
|
{{#hasBodyParam}}
|
||||||
|
@ -39,6 +39,19 @@
|
|||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>npm-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>npm</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>test</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@ -39,6 +39,19 @@
|
|||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>npm-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>npm</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>test</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@ -39,6 +39,19 @@
|
|||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>npm-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>npm</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>test</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user