remove trailing space in ts fetech api, add npm test to ci (#4348)

This commit is contained in:
wing328 2016-12-08 18:09:20 +08:00 committed by GitHub
parent 535b233ff7
commit af2db27a83
7 changed files with 49 additions and 8 deletions

View File

@ -94,8 +94,10 @@ export const {{classname}}FetchParamCreactor = {
let contentTypeHeader: Dictionary<string>;
{{#hasFormParams}}
contentTypeHeader = { "Content-Type": "application/x-www-form-urlencoded" };
fetchOptions.body = querystring.stringify({ {{#formParams}}
"{{baseName}}": params["{{paramName}}"],{{/formParams}}
fetchOptions.body = querystring.stringify({
{{#formParams}}
"{{baseName}}": params["{{paramName}}"],
{{/formParams}}
});
{{/hasFormParams}}
{{#hasBodyParam}}

View File

@ -39,6 +39,19 @@
</arguments>
</configuration>
</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>
</plugin>
</plugins>

View File

@ -39,6 +39,19 @@
</arguments>
</configuration>
</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>
</plugin>
</plugins>

View File

@ -39,6 +39,19 @@
</arguments>
</configuration>
</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>
</plugin>
</plugins>