[JavaScript] Recommission integration tests for Issue#2258.

This commit is contained in:
demonfiddler
2016-03-18 16:38:02 +00:00
parent c3507e43a3
commit 3082702429
44 changed files with 2672 additions and 2432 deletions

View File

@@ -9,20 +9,109 @@
}(function(ApiClient, Category, InlineResponse200, Model200Response, ModelReturn, Name, Order, Pet, SpecialModelName, Tag, User, PetApi, StoreApi, UserApi) {
'use strict';
return {
/**
* This is a sample server Petstore server. You can find out more about Swagger at &lt;a href=\&quot;http://swagger.io\&quot;&gt;http://swagger.io&lt;/a&gt; or on irc.freenode.net, #swagger. For this sample, you can use the api key \&quot;special-key\&quot; to test the authorization filters.<br>
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre>
* var SwaggerPetstore = require('./index'); // See note below*.
* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new SwaggerPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* <em>*NOTE: For a top-level AMD script, use require(['./index'], function(){...}) and put the application logic within the
* callback function.</em>
* </p>
* <p>
* A non-AMD browser application (discouraged) might do something like this:
* <pre>
* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new SwaggerPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* </p>
* @module index
* @version 1.0.0
*/
var exports = {
/**
* The ApiClient constructor.
* @property {module:ApiClient}
*/
ApiClient: ApiClient,
/**
* The Category model constructor.
* @property {module:model/Category}
*/
Category: Category,
/**
* The InlineResponse200 model constructor.
* @property {module:model/InlineResponse200}
*/
InlineResponse200: InlineResponse200,
/**
* The Model200Response model constructor.
* @property {module:model/Model200Response}
*/
Model200Response: Model200Response,
/**
* The ModelReturn model constructor.
* @property {module:model/ModelReturn}
*/
ModelReturn: ModelReturn,
/**
* The Name model constructor.
* @property {module:model/Name}
*/
Name: Name,
/**
* The Order model constructor.
* @property {module:model/Order}
*/
Order: Order,
/**
* The Pet model constructor.
* @property {module:model/Pet}
*/
Pet: Pet,
/**
* The SpecialModelName model constructor.
* @property {module:model/SpecialModelName}
*/
SpecialModelName: SpecialModelName,
/**
* The Tag model constructor.
* @property {module:model/Tag}
*/
Tag: Tag,
/**
* The User model constructor.
* @property {module:model/User}
*/
User: User,
/**
* The PetApi service constructor.
* @property {module:api/PetApi}
*/
PetApi: PetApi,
/**
* The StoreApi service constructor.
* @property {module:api/StoreApi}
*/
StoreApi: StoreApi,
/**
* The UserApi service constructor.
* @property {module:api/UserApi}
*/
UserApi: UserApi
};
return exports;
}));