forked from loafle/openapi-generator-original
[JavaScript] fix index.js, ApiClient.js and test files generated to incorrect location (#2511)
remove outdated samples files update test dependencies
This commit is contained in:
parent
c4d982f775
commit
8977d7b366
@ -51,8 +51,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
|
|
||||||
final String[][] JAVASCRIPT_SUPPORTING_FILES = new String[][]{
|
final String[][] JAVASCRIPT_SUPPORTING_FILES = new String[][]{
|
||||||
new String[]{"package.mustache", "package.json"},
|
new String[]{"package.mustache", "package.json"},
|
||||||
new String[]{"index.mustache", "src/index.js"},
|
// new String[]{"index.mustache", "src/index.js", },
|
||||||
new String[]{"ApiClient.mustache", "src/ApiClient.js"},
|
// new String[]{"ApiClient.mustache", "src/ApiClient.js"},
|
||||||
new String[]{"git_push.sh.mustache", "git_push.sh"},
|
new String[]{"git_push.sh.mustache", "git_push.sh"},
|
||||||
new String[]{"README.mustache", "README.md"},
|
new String[]{"README.mustache", "README.md"},
|
||||||
new String[]{"mocha.opts", "mocha.opts"},
|
new String[]{"mocha.opts", "mocha.opts"},
|
||||||
@ -61,8 +61,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
|
|
||||||
final String[][] JAVASCRIPT_ES6_SUPPORTING_FILES = new String[][]{
|
final String[][] JAVASCRIPT_ES6_SUPPORTING_FILES = new String[][]{
|
||||||
new String[]{"package.mustache", "package.json"},
|
new String[]{"package.mustache", "package.json"},
|
||||||
new String[]{"index.mustache", "src/index.js"},
|
// new String[]{"index.mustache", "src/index.js"},
|
||||||
new String[]{"ApiClient.mustache", "src/ApiClient.js"},
|
// new String[]{"ApiClient.mustache", "src/ApiClient.js"},
|
||||||
new String[]{"git_push.sh.mustache", "git_push.sh"},
|
new String[]{"git_push.sh.mustache", "git_push.sh"},
|
||||||
new String[]{"README.mustache", "README.md"},
|
new String[]{"README.mustache", "README.md"},
|
||||||
new String[]{"mocha.opts", "mocha.opts"},
|
new String[]{"mocha.opts", "mocha.opts"},
|
||||||
@ -85,7 +85,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
protected String modelDocPath = "docs/";
|
protected String modelDocPath = "docs/";
|
||||||
protected String apiTestPath = "api/";
|
protected String apiTestPath = "api/";
|
||||||
protected String modelTestPath = "model/";
|
protected String modelTestPath = "model/";
|
||||||
protected boolean useES6 = true; // default is ES5
|
protected boolean useES6 = true; // default is ES6
|
||||||
private String modelPropertyNaming = "camelCase";
|
private String modelPropertyNaming = "camelCase";
|
||||||
|
|
||||||
public JavascriptClientCodegen() {
|
public JavascriptClientCodegen() {
|
||||||
@ -337,6 +337,9 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
for (String[] supportingTemplateFile : supportingTemplateFiles) {
|
for (String[] supportingTemplateFile : supportingTemplateFiles) {
|
||||||
supportingFiles.add(new SupportingFile(supportingTemplateFile[0], "", supportingTemplateFile[1]));
|
supportingFiles.add(new SupportingFile(supportingTemplateFile[0], "", supportingTemplateFile[1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
supportingFiles.add(new SupportingFile("index.mustache", createPath(sourceFolder, invokerPackage), "index.js"));
|
||||||
|
supportingFiles.add(new SupportingFile("ApiClient.mustache", createPath(sourceFolder, invokerPackage), "ApiClient.js"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -373,12 +376,12 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String apiTestFileFolder() {
|
public String apiTestFileFolder() {
|
||||||
return (outputFolder + "/test/" + apiTestPath).replace('/', File.separatorChar);
|
return createPath(outputFolder, "test", invokerPackage, apiTestPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String modelTestFileFolder() {
|
public String modelTestFileFolder() {
|
||||||
return (outputFolder + "/test/" + modelTestPath).replace('/', File.separatorChar);
|
return createPath(outputFolder, "test", invokerPackage, modelTestPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -788,7 +791,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
* @param type Primitive type
|
* @param type Primitive type
|
||||||
* @return Normalized type
|
* @return Normalized type
|
||||||
*/
|
*/
|
||||||
public String normalizeType(String type) {
|
private String normalizeType(String type) {
|
||||||
return type.replaceAll("\\b(Boolean|Integer|Number|String|Date|Blob)\\b", "'$1'");
|
return type.replaceAll("\\b(Boolean|Integer|Number|String|Date|Blob)\\b", "'$1'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -867,10 +870,11 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
return codegenModel;
|
return codegenModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
private String sanitizePath(String p) {
|
private String sanitizePath(String p) {
|
||||||
//prefer replace a ', instead of a fuLL URL encode for readability
|
//prefer replace a ', instead of a fuLL URL encode for readability
|
||||||
return p.replaceAll("'", "%27");
|
return p.replaceAll("'", "%27");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
private String trimBrackets(String s) {
|
private String trimBrackets(String s) {
|
||||||
if (s != null) {
|
if (s != null) {
|
||||||
@ -959,7 +963,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
if (operations != null) {
|
if (operations != null) {
|
||||||
List<CodegenOperation> ops = (List<CodegenOperation>) operations.get("operation");
|
List<CodegenOperation> ops = (List<CodegenOperation>) operations.get("operation");
|
||||||
for (CodegenOperation operation : ops) {
|
for (CodegenOperation operation : ops) {
|
||||||
List<String> argList = new ArrayList<String>();
|
List<String> argList = new ArrayList<>();
|
||||||
boolean hasOptionalParams = false;
|
boolean hasOptionalParams = false;
|
||||||
for (CodegenParameter p : operation.allParams) {
|
for (CodegenParameter p : operation.allParams) {
|
||||||
if (p.required) {
|
if (p.required) {
|
||||||
@ -1014,7 +1018,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
// NOTE: can't use 'mandatory' as it is built from ModelImpl.getRequired(), which sorts names
|
// NOTE: can't use 'mandatory' as it is built from ModelImpl.getRequired(), which sorts names
|
||||||
// alphabetically and in any case the document order of 'required' and 'properties' can differ.
|
// alphabetically and in any case the document order of 'required' and 'properties' can differ.
|
||||||
List<CodegenProperty> required = new ArrayList<>();
|
List<CodegenProperty> required = new ArrayList<>();
|
||||||
List<CodegenProperty> allRequired = supportsInheritance || supportsMixins ? new ArrayList<CodegenProperty>() : required;
|
List<CodegenProperty> allRequired = supportsInheritance || supportsMixins ? new ArrayList<>() : required;
|
||||||
cm.vendorExtensions.put("x-required", required);
|
cm.vendorExtensions.put("x-required", required);
|
||||||
cm.vendorExtensions.put("x-all-required", allRequired);
|
cm.vendorExtensions.put("x-all-required", allRequired);
|
||||||
|
|
||||||
@ -1120,6 +1124,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
return codegenModel;
|
return codegenModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
private static String sanitizePackageName(String packageName) { // FIXME parameter should not be assigned. Also declare it as "final"
|
private static String sanitizePackageName(String packageName) { // FIXME parameter should not be assigned. Also declare it as "final"
|
||||||
packageName = packageName.trim();
|
packageName = packageName.trim();
|
||||||
packageName = packageName.replaceAll("[^a-zA-Z0-9_\\.]", "_");
|
packageName = packageName.replaceAll("[^a-zA-Z0-9_\\.]", "_");
|
||||||
@ -1128,6 +1133,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
}
|
}
|
||||||
return packageName;
|
return packageName;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toEnumName(CodegenProperty property) {
|
public String toEnumName(CodegenProperty property) {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.{{moduleName}});
|
factory(root.expect, root.{{moduleName}});
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.{{moduleName}});
|
factory(root.expect, root.{{moduleName}});
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.{{moduleName}});
|
factory(root.expect, root.{{moduleName}});
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
"babel-core": "6.26.0",
|
"babel-core": "6.26.0",
|
||||||
"babel-preset-env": "^1.6.1",
|
"babel-preset-env": "^1.6.1",
|
||||||
"babel-preset-stage-0": "^6.24.1",
|
"babel-preset-stage-0": "^6.24.1",
|
||||||
"expect.js": "~0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^5.2.0",
|
"mocha": "^5.2.0",
|
||||||
"sinon": "1.17.3"
|
"sinon": "^7.2.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.{{moduleName}});
|
factory(root.expect, root.{{moduleName}});
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"license": "{{licenseName}}",
|
"license": "{{licenseName}}",
|
||||||
"main": "{{sourceFolder}}{{#invokerPackage}}/{{invokerPackage}}{{/invokerPackage}}/index.js",
|
"main": "{{sourceFolder}}{{#invokerPackage}}/{{invokerPackage}}{{/invokerPackage}}/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/mocha/bin/mocha --recursive"
|
"test": "mocha --recursive"
|
||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"fs": false
|
"fs": false
|
||||||
@ -14,8 +14,8 @@
|
|||||||
"superagent": "3.7.0"
|
"superagent": "3.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"expect.js": "~0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^5.2.0",
|
"mocha": "^5.2.0",
|
||||||
"sinon": "1.17.3"
|
"sinon": "^7.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# OpenApiPetstore.AnimalFarm
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
# SwaggerPetstore.Fake_classname_tags123Api
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**testClassname**](Fake_classname_tags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
|
||||||
|
|
||||||
|
|
||||||
<a name="testClassname"></a>
|
|
||||||
# **testClassname**
|
|
||||||
> Client testClassname(body)
|
|
||||||
|
|
||||||
To test class name in snake case
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```javascript
|
|
||||||
import SwaggerPetstore from 'swagger_petstore';
|
|
||||||
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
|
||||||
|
|
||||||
// Configure API key authorization: api_key_query
|
|
||||||
let api_key_query = defaultClient.authentications['api_key_query'];
|
|
||||||
api_key_query.apiKey = 'YOUR API KEY';
|
|
||||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
||||||
//api_key_query.apiKeyPrefix = 'Token';
|
|
||||||
|
|
||||||
let apiInstance = new SwaggerPetstore.Fake_classname_tags123Api();
|
|
||||||
|
|
||||||
let body = new SwaggerPetstore.Client(); // Client | client model
|
|
||||||
|
|
||||||
|
|
||||||
apiInstance.testClassname(body, (error, data, response) => {
|
|
||||||
if (error) {
|
|
||||||
console.error(error);
|
|
||||||
} else {
|
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**body** | [**Client**](Client.md)| client model |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**Client**](Client.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[api_key_query](../README.md#api_key_query)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
# SwaggerPetstore.OuterBoolean
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
# SwaggerPetstore.OuterNumber
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
# SwaggerPetstore.OuterString
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
# OpenApiPetstore.StringBooleanMap
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -20,9 +20,9 @@
|
|||||||
"babel-core": "6.26.0",
|
"babel-core": "6.26.0",
|
||||||
"babel-preset-env": "^1.6.1",
|
"babel-preset-env": "^1.6.1",
|
||||||
"babel-preset-stage-0": "^6.24.1",
|
"babel-preset-stage-0": "^6.24.1",
|
||||||
"expect.js": "~0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^5.2.0",
|
"mocha": "^5.2.0",
|
||||||
"sinon": "1.17.3"
|
"sinon": "^7.2.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
@ -1,70 +0,0 @@
|
|||||||
/**
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
|
||||||
import Animal from './Animal';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The AnimalFarm model module.
|
|
||||||
* @module model/AnimalFarm
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
class AnimalFarm extends Array {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>AnimalFarm</code>.
|
|
||||||
* @alias module:model/AnimalFarm
|
|
||||||
* @extends Array
|
|
||||||
*/
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
|
|
||||||
|
|
||||||
AnimalFarm.initialize(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializes the fields of this object.
|
|
||||||
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
||||||
* Only for internal use.
|
|
||||||
*/
|
|
||||||
static initialize(obj) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
||||||
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
|
||||||
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
|
||||||
*/
|
|
||||||
static constructFromObject(data, obj) {
|
|
||||||
if (data) {
|
|
||||||
obj = obj || new AnimalFarm();
|
|
||||||
|
|
||||||
ApiClient.constructFromObject(data, obj, 'Animal');
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default AnimalFarm;
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
|||||||
/**
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The StringBooleanMap model module.
|
|
||||||
* @module model/StringBooleanMap
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
class StringBooleanMap {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>StringBooleanMap</code>.
|
|
||||||
* @alias module:model/StringBooleanMap
|
|
||||||
* @extends Object
|
|
||||||
*/
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
StringBooleanMap.initialize(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializes the fields of this object.
|
|
||||||
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
||||||
* Only for internal use.
|
|
||||||
*/
|
|
||||||
static initialize(obj) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a <code>StringBooleanMap</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
||||||
* @param {module:model/StringBooleanMap} obj Optional instance to populate.
|
|
||||||
* @return {module:model/StringBooleanMap} The populated <code>StringBooleanMap</code> instance.
|
|
||||||
*/
|
|
||||||
static constructFromObject(data, obj) {
|
|
||||||
if (data) {
|
|
||||||
obj = obj || new StringBooleanMap();
|
|
||||||
|
|
||||||
ApiClient.constructFromObject(data, obj, 'Boolean');
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default StringBooleanMap;
|
|
||||||
|
|
@ -1,393 +0,0 @@
|
|||||||
if (typeof module === 'object' && module.exports) {
|
|
||||||
var expect = require('expect.js');
|
|
||||||
var SwaggerPetstore = require('../src/index');
|
|
||||||
var sinon = require('sinon');
|
|
||||||
}
|
|
||||||
|
|
||||||
var apiClient = SwaggerPetstore.ApiClient.instance;
|
|
||||||
|
|
||||||
describe('ApiClient', function() {
|
|
||||||
describe('defaults', function() {
|
|
||||||
it('should have correct default values with the default API client', function() {
|
|
||||||
expect(apiClient).to.be.ok();
|
|
||||||
expect(apiClient.basePath).to.be('http://petstore.swagger.io:80/v2');
|
|
||||||
expect(apiClient.authentications).to.eql({
|
|
||||||
petstore_auth: {type: 'oauth2'},
|
|
||||||
http_basic_test: {type: 'basic'},
|
|
||||||
api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
|
||||||
api_key_query: {type: 'apiKey', 'in': 'query', name: 'api_key_query'},
|
|
||||||
/* comment out the following as these fake security def (testing purpose)
|
|
||||||
* are removed from the spec, we'll add these back after updating the
|
|
||||||
* petstore server
|
|
||||||
*
|
|
||||||
test_http_basic: {type: 'basic'},
|
|
||||||
test_api_client_id: {
|
|
||||||
type: 'apiKey',
|
|
||||||
'in': 'header',
|
|
||||||
name: 'x-test_api_client_id'
|
|
||||||
},
|
|
||||||
test_api_client_secret: {
|
|
||||||
type: 'apiKey',
|
|
||||||
'in': 'header',
|
|
||||||
name: 'x-test_api_client_secret'
|
|
||||||
},
|
|
||||||
test_api_key_query: {
|
|
||||||
type: 'apiKey',
|
|
||||||
'in': 'query',
|
|
||||||
name: 'test_api_key_query'
|
|
||||||
},
|
|
||||||
test_api_key_header: {
|
|
||||||
type: 'apiKey',
|
|
||||||
'in': 'header',
|
|
||||||
name: 'test_api_key_header'
|
|
||||||
}*/
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have correct default values with new API client and can customize it', function() {
|
|
||||||
var newClient = new SwaggerPetstore.ApiClient;
|
|
||||||
expect(newClient.basePath).to.be('http://petstore.swagger.io:80/v2');
|
|
||||||
expect(newClient.buildUrl('/abc', {})).to.be('http://petstore.swagger.io:80/v2/abc');
|
|
||||||
|
|
||||||
newClient.basePath = 'http://example.com';
|
|
||||||
expect(newClient.basePath).to.be('http://example.com');
|
|
||||||
expect(newClient.buildUrl('/abc', {})).to.be('http://example.com/abc');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('#paramToString', function() {
|
|
||||||
it('should return empty string for null and undefined', function() {
|
|
||||||
expect(apiClient.paramToString(null)).to.be('');
|
|
||||||
expect(apiClient.paramToString(undefined)).to.be('');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should return string', function() {
|
|
||||||
expect(apiClient.paramToString('')).to.be('');
|
|
||||||
expect(apiClient.paramToString('abc')).to.be('abc');
|
|
||||||
expect(apiClient.paramToString(123)).to.be('123');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('#buildCollectionParam', function() {
|
|
||||||
var param;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
param = ['aa', 'bb', 123];
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works for csv', function() {
|
|
||||||
expect(apiClient.buildCollectionParam(param, 'csv')).to.be('aa,bb,123');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works for ssv', function() {
|
|
||||||
expect(apiClient.buildCollectionParam(param, 'ssv')).to.be('aa bb 123');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works for tsv', function() {
|
|
||||||
expect(apiClient.buildCollectionParam(param, 'tsv')).to.be('aa\tbb\t123');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works for pipes', function() {
|
|
||||||
expect(apiClient.buildCollectionParam(param, 'pipes')).to.be('aa|bb|123');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works for multi', function() {
|
|
||||||
expect(apiClient.buildCollectionParam(param, 'multi')).to.eql(['aa', 'bb', '123']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('fails for invalid collection format', function() {
|
|
||||||
expect(function() { apiClient.buildCollectionParam(param, 'INVALID'); }).to.throwError();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('#buildUrl', function() {
|
|
||||||
it('should work without path parameters in the path', function() {
|
|
||||||
expect(apiClient.buildUrl('/abc', {})).to
|
|
||||||
.be('http://petstore.swagger.io:80/v2/abc');
|
|
||||||
expect(apiClient.buildUrl('/abc/def?ok', {id: 123})).to
|
|
||||||
.be('http://petstore.swagger.io:80/v2/abc/def?ok');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should work with path parameters in the path', function() {
|
|
||||||
expect(apiClient.buildUrl('/{id}', {id: 123})).to
|
|
||||||
.be('http://petstore.swagger.io:80/v2/123');
|
|
||||||
expect(apiClient.buildUrl('/abc/{id}/{name}?ok', {id: 456, name: 'a b'})).to.
|
|
||||||
be('http://petstore.swagger.io:80/v2/abc/456/a%20b?ok');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('#isJsonMime', function() {
|
|
||||||
it('should return true for JSON MIME', function() {
|
|
||||||
expect(apiClient.isJsonMime('application/json')).to.be(true);
|
|
||||||
expect(apiClient.isJsonMime('application/json; charset=UTF8')).to.be(true);
|
|
||||||
expect(apiClient.isJsonMime('APPLICATION/JSON')).to.be(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should return false for non-JSON MIME', function() {
|
|
||||||
expect(apiClient.isJsonMime('')).to.be(false);
|
|
||||||
expect(apiClient.isJsonMime('text/plain')).to.be(false);
|
|
||||||
expect(apiClient.isJsonMime('application/xml')).to.be(false);
|
|
||||||
expect(apiClient.isJsonMime('application/jsonp')).to.be(false);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('#applyAuthToRequest', function() {
|
|
||||||
var req, newClient;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
req = {
|
|
||||||
auth: function() {},
|
|
||||||
set: function() {},
|
|
||||||
query: function() {}
|
|
||||||
};
|
|
||||||
sinon.stub(req, 'auth');
|
|
||||||
sinon.stub(req, 'set');
|
|
||||||
sinon.stub(req, 'query');
|
|
||||||
newClient = new SwaggerPetstore.ApiClient();
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('basic', function() {
|
|
||||||
var authName = 'testBasicAuth';
|
|
||||||
var authNames = [authName];
|
|
||||||
var auth;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
newClient.authentications[authName] = {type: 'basic'};
|
|
||||||
auth = newClient.authentications[authName];
|
|
||||||
});
|
|
||||||
|
|
||||||
it('sets auth header with username and password set', function() {
|
|
||||||
auth.username = 'user';
|
|
||||||
auth.password = 'pass';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.auth);
|
|
||||||
// 'dXNlcjpwYXNz' is base64-encoded string of 'user:pass'
|
|
||||||
sinon.assert.calledWithMatch(req.auth, 'user', 'pass');
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('sets header with only username set', function() {
|
|
||||||
auth.username = 'user';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.auth);
|
|
||||||
// 'dXNlcjo=' is base64-encoded string of 'user:'
|
|
||||||
sinon.assert.calledWithMatch(req.auth, 'user', '');
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('sets header with only password set', function() {
|
|
||||||
auth.password = 'pass';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.auth);
|
|
||||||
// 'OnBhc3M=' is base64-encoded string of ':pass'
|
|
||||||
sinon.assert.calledWithMatch(req.auth, '', 'pass');
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('does not set header when username and password are not set', function() {
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('apiKey', function() {
|
|
||||||
var authName = 'testApiKey';
|
|
||||||
var authNames = [authName];
|
|
||||||
var auth;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
newClient.authentications[authName] = {type: 'apiKey', name: 'api_key'};
|
|
||||||
auth = newClient.authentications[authName];
|
|
||||||
});
|
|
||||||
|
|
||||||
it('sets api key in header', function() {
|
|
||||||
auth.in = 'header';
|
|
||||||
auth.apiKey = 'my-api-key';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.set);
|
|
||||||
sinon.assert.calledWithMatch(req.set, {'api_key': 'my-api-key'});
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('sets api key in query', function() {
|
|
||||||
auth.in = 'query';
|
|
||||||
auth.apiKey = 'my-api-key';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.query);
|
|
||||||
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('sets api key in header with prefix', function() {
|
|
||||||
auth.in = 'header';
|
|
||||||
auth.apiKey = 'my-api-key';
|
|
||||||
auth.apiKeyPrefix = 'Key';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.set);
|
|
||||||
sinon.assert.calledWithMatch(req.set, {'api_key': 'Key my-api-key'});
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works when api key is not set', function() {
|
|
||||||
auth.in = 'query';
|
|
||||||
auth.apiKey = null;
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('oauth2', function() {
|
|
||||||
var authName = 'testOAuth2';
|
|
||||||
var authNames = [authName];
|
|
||||||
var auth;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
newClient.authentications[authName] = {type: 'oauth2'};
|
|
||||||
auth = newClient.authentications[authName];
|
|
||||||
});
|
|
||||||
|
|
||||||
it('sets access token in header', function() {
|
|
||||||
auth.accessToken = 'my-access-token';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.set);
|
|
||||||
sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'});
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works when access token is not set', function() {
|
|
||||||
auth.accessToken = null;
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('apiKey and oauth2', function() {
|
|
||||||
var apiKeyAuthName = 'testApiKey';
|
|
||||||
var oauth2Name = 'testOAuth2';
|
|
||||||
var authNames = [apiKeyAuthName, oauth2Name];
|
|
||||||
var apiKeyAuth, oauth2;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
newClient.authentications[apiKeyAuthName] = {type: 'apiKey', name: 'api_key', 'in': 'query'};
|
|
||||||
newClient.authentications[oauth2Name] = {type: 'oauth2'};
|
|
||||||
apiKeyAuth = newClient.authentications[apiKeyAuthName];
|
|
||||||
oauth2 = newClient.authentications[oauth2Name];
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works when setting both api key and access token', function() {
|
|
||||||
apiKeyAuth.apiKey = 'my-api-key';
|
|
||||||
oauth2.accessToken = 'my-access-token';
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.query);
|
|
||||||
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
|
||||||
sinon.assert.calledOnce(req.set);
|
|
||||||
sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'});
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works when setting only api key', function() {
|
|
||||||
apiKeyAuth.apiKey = 'my-api-key';
|
|
||||||
oauth2.accessToken = null;
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.calledOnce(req.query);
|
|
||||||
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('works when neither api key nor access token is set', function() {
|
|
||||||
apiKeyAuth.apiKey = null;
|
|
||||||
oauth2.accessToken = null;
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('unknown type', function() {
|
|
||||||
var authName = 'unknown';
|
|
||||||
var authNames = [authName];
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
newClient.authentications[authName] = {type: 'UNKNOWN'};
|
|
||||||
});
|
|
||||||
|
|
||||||
it('throws error for unknown auth type', function() {
|
|
||||||
expect(function() {
|
|
||||||
newClient.applyAuthToRequest(req, authNames);
|
|
||||||
}).to.throwError();
|
|
||||||
sinon.assert.notCalled(req.set);
|
|
||||||
sinon.assert.notCalled(req.auth);
|
|
||||||
sinon.assert.notCalled(req.query);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
/*
|
|
||||||
describe('#defaultHeaders', function() {
|
|
||||||
it('should initialize default headers to be an empty object', function() {
|
|
||||||
expect(apiClient.defaultHeaders).to.eql({});
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should put default headers in request', function() {
|
|
||||||
var newClient = new SwaggerPetstore.ApiClient;
|
|
||||||
newClient.defaultHeaders['Content-Type'] = 'text/plain'
|
|
||||||
newClient.defaultHeaders['api_key'] = 'special-key'
|
|
||||||
|
|
||||||
var expected = {'Content-Type': 'text/plain', 'api_key': 'special-key'};
|
|
||||||
expect(newClient.defaultHeaders).to.eql(expected);
|
|
||||||
var req = makeDumbRequest(newClient);
|
|
||||||
req.unset('User-Agent');
|
|
||||||
expect(req.header).to.eql(expected);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should override default headers with provided header params', function() {
|
|
||||||
var newClient = new SwaggerPetstore.ApiClient;
|
|
||||||
newClient.defaultHeaders['Content-Type'] = 'text/plain'
|
|
||||||
newClient.defaultHeaders['api_key'] = 'special-key'
|
|
||||||
|
|
||||||
var headerParams = {'Content-Type': 'application/json', 'Authorization': 'Bearer test-token'}
|
|
||||||
var expected = {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
'api_key': 'special-key',
|
|
||||||
'Authorization': 'Bearer test-token'
|
|
||||||
};
|
|
||||||
var req = makeDumbRequest(newClient, {headerParams: headerParams});
|
|
||||||
req.unset('User-Agent');
|
|
||||||
expect(req.header).to.eql(expected);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
function makeDumbRequest(apiClient, opts) {
|
|
||||||
opts = opts || {};
|
|
||||||
var path = opts.path || '/store/inventory';
|
|
||||||
var httpMethod = opts.httpMethod || 'GET';
|
|
||||||
var pathParams = opts.pathParams || {};
|
|
||||||
var queryParams = opts.queryParams || {};
|
|
||||||
var headerParams = opts.headerParams || {};
|
|
||||||
var formParams = opts.formParams || {};
|
|
||||||
var bodyParam = opts.bodyParam;
|
|
||||||
var authNames = [];
|
|
||||||
var contentTypes = opts.contentTypes || [];
|
|
||||||
var accepts = opts.accepts || [];
|
|
||||||
var callback = opts.callback;
|
|
||||||
return apiClient.callApi(path, httpMethod, pathParams, queryParams,
|
|
||||||
headerParams, formParams, bodyParam, authNames, contentTypes, accepts);
|
|
||||||
}
|
|
@ -1,63 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.AnotherFakeApi();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('AnotherFakeApi', function() {
|
|
||||||
describe('testSpecialTags', function() {
|
|
||||||
it('should call testSpecialTags successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test testSpecialTags
|
|
||||||
//instance.testSpecialTags(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,123 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.FakeApi();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('FakeApi', function() {
|
|
||||||
describe('fakeOuterBooleanSerialize', function() {
|
|
||||||
it('should call fakeOuterBooleanSerialize successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test fakeOuterBooleanSerialize
|
|
||||||
//instance.fakeOuterBooleanSerialize(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('fakeOuterCompositeSerialize', function() {
|
|
||||||
it('should call fakeOuterCompositeSerialize successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test fakeOuterCompositeSerialize
|
|
||||||
//instance.fakeOuterCompositeSerialize(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('fakeOuterNumberSerialize', function() {
|
|
||||||
it('should call fakeOuterNumberSerialize successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test fakeOuterNumberSerialize
|
|
||||||
//instance.fakeOuterNumberSerialize(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('fakeOuterStringSerialize', function() {
|
|
||||||
it('should call fakeOuterStringSerialize successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test fakeOuterStringSerialize
|
|
||||||
//instance.fakeOuterStringSerialize(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('testClientModel', function() {
|
|
||||||
it('should call testClientModel successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test testClientModel
|
|
||||||
//instance.testClientModel(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('testEndpointParameters', function() {
|
|
||||||
it('should call testEndpointParameters successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test testEndpointParameters
|
|
||||||
//instance.testEndpointParameters(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('testEnumParameters', function() {
|
|
||||||
it('should call testEnumParameters successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test testEnumParameters
|
|
||||||
//instance.testEnumParameters(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,63 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.FakeClassnameTags123Api();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('FakeClassnameTags123Api', function() {
|
|
||||||
describe('testClassname', function() {
|
|
||||||
it('should call testClassname successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test testClassname
|
|
||||||
//instance.testClassname(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,133 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.PetApi();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('PetApi', function() {
|
|
||||||
describe('addPet', function() {
|
|
||||||
it('should call addPet successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test addPet
|
|
||||||
//instance.addPet(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('deletePet', function() {
|
|
||||||
it('should call deletePet successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test deletePet
|
|
||||||
//instance.deletePet(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('findPetsByStatus', function() {
|
|
||||||
it('should call findPetsByStatus successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test findPetsByStatus
|
|
||||||
//instance.findPetsByStatus(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('findPetsByTags', function() {
|
|
||||||
it('should call findPetsByTags successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test findPetsByTags
|
|
||||||
//instance.findPetsByTags(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('getPetById', function() {
|
|
||||||
it('should call getPetById successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test getPetById
|
|
||||||
//instance.getPetById(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('updatePet', function() {
|
|
||||||
it('should call updatePet successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test updatePet
|
|
||||||
//instance.updatePet(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('updatePetWithForm', function() {
|
|
||||||
it('should call updatePetWithForm successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test updatePetWithForm
|
|
||||||
//instance.updatePetWithForm(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('uploadFile', function() {
|
|
||||||
it('should call uploadFile successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test uploadFile
|
|
||||||
//instance.uploadFile(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,93 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.StoreApi();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('StoreApi', function() {
|
|
||||||
describe('deleteOrder', function() {
|
|
||||||
it('should call deleteOrder successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test deleteOrder
|
|
||||||
//instance.deleteOrder(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('getInventory', function() {
|
|
||||||
it('should call getInventory successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test getInventory
|
|
||||||
//instance.getInventory(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('getOrderById', function() {
|
|
||||||
it('should call getOrderById successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test getOrderById
|
|
||||||
//instance.getOrderById(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('placeOrder', function() {
|
|
||||||
it('should call placeOrder successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test placeOrder
|
|
||||||
//instance.placeOrder(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,133 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.UserApi();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('UserApi', function() {
|
|
||||||
describe('createUser', function() {
|
|
||||||
it('should call createUser successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test createUser
|
|
||||||
//instance.createUser(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('createUsersWithArrayInput', function() {
|
|
||||||
it('should call createUsersWithArrayInput successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test createUsersWithArrayInput
|
|
||||||
//instance.createUsersWithArrayInput(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('createUsersWithListInput', function() {
|
|
||||||
it('should call createUsersWithListInput successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test createUsersWithListInput
|
|
||||||
//instance.createUsersWithListInput(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('deleteUser', function() {
|
|
||||||
it('should call deleteUser successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test deleteUser
|
|
||||||
//instance.deleteUser(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('getUserByName', function() {
|
|
||||||
it('should call getUserByName successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test getUserByName
|
|
||||||
//instance.getUserByName(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('loginUser', function() {
|
|
||||||
it('should call loginUser successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test loginUser
|
|
||||||
//instance.loginUser(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('logoutUser', function() {
|
|
||||||
it('should call logoutUser successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test logoutUser
|
|
||||||
//instance.logoutUser(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
describe('updateUser', function() {
|
|
||||||
it('should call updateUser successfully', function(done) {
|
|
||||||
//uncomment below and update the code to test updateUser
|
|
||||||
//instance.updateUser(function(error) {
|
|
||||||
// if (error) throw error;
|
|
||||||
//expect().to.be();
|
|
||||||
//});
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.AdditionalPropertiesClass();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('AdditionalPropertiesClass', function() {
|
|
||||||
it('should create an instance of AdditionalPropertiesClass', function() {
|
|
||||||
// uncomment below and update the code to test AdditionalPropertiesClass
|
|
||||||
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.AdditionalPropertiesClass);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property mapProperty (base name: "map_property")', function() {
|
|
||||||
// uncomment below and update the code to test the property mapProperty
|
|
||||||
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property mapOfMapProperty (base name: "map_of_map_property")', function() {
|
|
||||||
// uncomment below and update the code to test the property mapOfMapProperty
|
|
||||||
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Animal();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Animal', function() {
|
|
||||||
it('should create an instance of Animal', function() {
|
|
||||||
// uncomment below and update the code to test Animal
|
|
||||||
//var instane = new SwaggerPetstore.Animal();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Animal);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property className (base name: "className")', function() {
|
|
||||||
// uncomment below and update the code to test the property className
|
|
||||||
//var instane = new SwaggerPetstore.Animal();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property color (base name: "color")', function() {
|
|
||||||
// uncomment below and update the code to test the property color
|
|
||||||
//var instane = new SwaggerPetstore.Animal();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,77 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.ApiResponse();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ApiResponse', function() {
|
|
||||||
it('should create an instance of ApiResponse', function() {
|
|
||||||
// uncomment below and update the code to test ApiResponse
|
|
||||||
//var instane = new SwaggerPetstore.ApiResponse();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.ApiResponse);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property code (base name: "code")', function() {
|
|
||||||
// uncomment below and update the code to test the property code
|
|
||||||
//var instane = new SwaggerPetstore.ApiResponse();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property type (base name: "type")', function() {
|
|
||||||
// uncomment below and update the code to test the property type
|
|
||||||
//var instane = new SwaggerPetstore.ApiResponse();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property message (base name: "message")', function() {
|
|
||||||
// uncomment below and update the code to test the property message
|
|
||||||
//var instane = new SwaggerPetstore.ApiResponse();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ArrayOfArrayOfNumberOnly', function() {
|
|
||||||
it('should create an instance of ArrayOfArrayOfNumberOnly', function() {
|
|
||||||
// uncomment below and update the code to test ArrayOfArrayOfNumberOnly
|
|
||||||
//var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.ArrayOfArrayOfNumberOnly);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() {
|
|
||||||
// uncomment below and update the code to test the property arrayArrayNumber
|
|
||||||
//var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.ArrayOfNumberOnly();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ArrayOfNumberOnly', function() {
|
|
||||||
it('should create an instance of ArrayOfNumberOnly', function() {
|
|
||||||
// uncomment below and update the code to test ArrayOfNumberOnly
|
|
||||||
//var instane = new SwaggerPetstore.ArrayOfNumberOnly();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.ArrayOfNumberOnly);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property arrayNumber (base name: "ArrayNumber")', function() {
|
|
||||||
// uncomment below and update the code to test the property arrayNumber
|
|
||||||
//var instane = new SwaggerPetstore.ArrayOfNumberOnly();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,77 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.ArrayTest();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ArrayTest', function() {
|
|
||||||
it('should create an instance of ArrayTest', function() {
|
|
||||||
// uncomment below and update the code to test ArrayTest
|
|
||||||
//var instane = new SwaggerPetstore.ArrayTest();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.ArrayTest);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property arrayOfString (base name: "array_of_string")', function() {
|
|
||||||
// uncomment below and update the code to test the property arrayOfString
|
|
||||||
//var instane = new SwaggerPetstore.ArrayTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property arrayArrayOfInteger (base name: "array_array_of_integer")', function() {
|
|
||||||
// uncomment below and update the code to test the property arrayArrayOfInteger
|
|
||||||
//var instane = new SwaggerPetstore.ArrayTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property arrayArrayOfModel (base name: "array_array_of_model")', function() {
|
|
||||||
// uncomment below and update the code to test the property arrayArrayOfModel
|
|
||||||
//var instane = new SwaggerPetstore.ArrayTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,95 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Capitalization();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Capitalization', function() {
|
|
||||||
it('should create an instance of Capitalization', function() {
|
|
||||||
// uncomment below and update the code to test Capitalization
|
|
||||||
//var instane = new SwaggerPetstore.Capitalization();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Capitalization);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property smallCamel (base name: "smallCamel")', function() {
|
|
||||||
// uncomment below and update the code to test the property smallCamel
|
|
||||||
//var instane = new SwaggerPetstore.Capitalization();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property capitalCamel (base name: "CapitalCamel")', function() {
|
|
||||||
// uncomment below and update the code to test the property capitalCamel
|
|
||||||
//var instane = new SwaggerPetstore.Capitalization();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property smallSnake (base name: "small_Snake")', function() {
|
|
||||||
// uncomment below and update the code to test the property smallSnake
|
|
||||||
//var instane = new SwaggerPetstore.Capitalization();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property capitalSnake (base name: "Capital_Snake")', function() {
|
|
||||||
// uncomment below and update the code to test the property capitalSnake
|
|
||||||
//var instane = new SwaggerPetstore.Capitalization();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property sCAETHFlowPoints (base name: "SCA_ETH_Flow_Points")', function() {
|
|
||||||
// uncomment below and update the code to test the property sCAETHFlowPoints
|
|
||||||
//var instane = new SwaggerPetstore.Capitalization();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property ATT_NAME (base name: "ATT_NAME")', function() {
|
|
||||||
// uncomment below and update the code to test the property ATT_NAME
|
|
||||||
//var instane = new SwaggerPetstore.Capitalization();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Cat();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Cat', function() {
|
|
||||||
it('should create an instance of Cat', function() {
|
|
||||||
// uncomment below and update the code to test Cat
|
|
||||||
//var instane = new SwaggerPetstore.Cat();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Cat);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property declawed (base name: "declawed")', function() {
|
|
||||||
// uncomment below and update the code to test the property declawed
|
|
||||||
//var instane = new SwaggerPetstore.Cat();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Category();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Category', function() {
|
|
||||||
it('should create an instance of Category', function() {
|
|
||||||
// uncomment below and update the code to test Category
|
|
||||||
//var instane = new SwaggerPetstore.Category();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Category);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property id (base name: "id")', function() {
|
|
||||||
// uncomment below and update the code to test the property id
|
|
||||||
//var instane = new SwaggerPetstore.Category();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property name (base name: "name")', function() {
|
|
||||||
// uncomment below and update the code to test the property name
|
|
||||||
//var instane = new SwaggerPetstore.Category();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.ClassModel();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ClassModel', function() {
|
|
||||||
it('should create an instance of ClassModel', function() {
|
|
||||||
// uncomment below and update the code to test ClassModel
|
|
||||||
//var instane = new SwaggerPetstore.ClassModel();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.ClassModel);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _class (base name: "_class")', function() {
|
|
||||||
// uncomment below and update the code to test the property _class
|
|
||||||
//var instane = new SwaggerPetstore.ClassModel();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Client();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Client', function() {
|
|
||||||
it('should create an instance of Client', function() {
|
|
||||||
// uncomment below and update the code to test Client
|
|
||||||
//var instane = new SwaggerPetstore.Client();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Client);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property client (base name: "client")', function() {
|
|
||||||
// uncomment below and update the code to test the property client
|
|
||||||
//var instane = new SwaggerPetstore.Client();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Dog();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Dog', function() {
|
|
||||||
it('should create an instance of Dog', function() {
|
|
||||||
// uncomment below and update the code to test Dog
|
|
||||||
//var instane = new SwaggerPetstore.Dog();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Dog);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property breed (base name: "breed")', function() {
|
|
||||||
// uncomment below and update the code to test the property breed
|
|
||||||
//var instane = new SwaggerPetstore.Dog();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.EnumArrays();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('EnumArrays', function() {
|
|
||||||
it('should create an instance of EnumArrays', function() {
|
|
||||||
// uncomment below and update the code to test EnumArrays
|
|
||||||
//var instane = new SwaggerPetstore.EnumArrays();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.EnumArrays);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property justSymbol (base name: "just_symbol")', function() {
|
|
||||||
// uncomment below and update the code to test the property justSymbol
|
|
||||||
//var instane = new SwaggerPetstore.EnumArrays();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property arrayEnum (base name: "array_enum")', function() {
|
|
||||||
// uncomment below and update the code to test the property arrayEnum
|
|
||||||
//var instane = new SwaggerPetstore.EnumArrays();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,58 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('EnumClass', function() {
|
|
||||||
it('should create an instance of EnumClass', function() {
|
|
||||||
// uncomment below and update the code to test EnumClass
|
|
||||||
//var instane = new SwaggerPetstore.EnumClass();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.EnumClass);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,83 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.EnumTest();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('EnumTest', function() {
|
|
||||||
it('should create an instance of EnumTest', function() {
|
|
||||||
// uncomment below and update the code to test EnumTest
|
|
||||||
//var instane = new SwaggerPetstore.EnumTest();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.EnumTest);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property enumString (base name: "enum_string")', function() {
|
|
||||||
// uncomment below and update the code to test the property enumString
|
|
||||||
//var instane = new SwaggerPetstore.EnumTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property enumInteger (base name: "enum_integer")', function() {
|
|
||||||
// uncomment below and update the code to test the property enumInteger
|
|
||||||
//var instane = new SwaggerPetstore.EnumTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property enumNumber (base name: "enum_number")', function() {
|
|
||||||
// uncomment below and update the code to test the property enumNumber
|
|
||||||
//var instane = new SwaggerPetstore.EnumTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property outerEnum (base name: "outerEnum")', function() {
|
|
||||||
// uncomment below and update the code to test the property outerEnum
|
|
||||||
//var instane = new SwaggerPetstore.EnumTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,137 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.FormatTest();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('FormatTest', function() {
|
|
||||||
it('should create an instance of FormatTest', function() {
|
|
||||||
// uncomment below and update the code to test FormatTest
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.FormatTest);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property integer (base name: "integer")', function() {
|
|
||||||
// uncomment below and update the code to test the property integer
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property int32 (base name: "int32")', function() {
|
|
||||||
// uncomment below and update the code to test the property int32
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property int64 (base name: "int64")', function() {
|
|
||||||
// uncomment below and update the code to test the property int64
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _number (base name: "number")', function() {
|
|
||||||
// uncomment below and update the code to test the property _number
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _float (base name: "float")', function() {
|
|
||||||
// uncomment below and update the code to test the property _float
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _double (base name: "double")', function() {
|
|
||||||
// uncomment below and update the code to test the property _double
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _string (base name: "string")', function() {
|
|
||||||
// uncomment below and update the code to test the property _string
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _byte (base name: "byte")', function() {
|
|
||||||
// uncomment below and update the code to test the property _byte
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property binary (base name: "binary")', function() {
|
|
||||||
// uncomment below and update the code to test the property binary
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _date (base name: "date")', function() {
|
|
||||||
// uncomment below and update the code to test the property _date
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property dateTime (base name: "dateTime")', function() {
|
|
||||||
// uncomment below and update the code to test the property dateTime
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property uuid (base name: "uuid")', function() {
|
|
||||||
// uncomment below and update the code to test the property uuid
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property password (base name: "password")', function() {
|
|
||||||
// uncomment below and update the code to test the property password
|
|
||||||
//var instane = new SwaggerPetstore.FormatTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.HasOnlyReadOnly();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('HasOnlyReadOnly', function() {
|
|
||||||
it('should create an instance of HasOnlyReadOnly', function() {
|
|
||||||
// uncomment below and update the code to test HasOnlyReadOnly
|
|
||||||
//var instane = new SwaggerPetstore.HasOnlyReadOnly();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.HasOnlyReadOnly);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property bar (base name: "bar")', function() {
|
|
||||||
// uncomment below and update the code to test the property bar
|
|
||||||
//var instane = new SwaggerPetstore.HasOnlyReadOnly();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property foo (base name: "foo")', function() {
|
|
||||||
// uncomment below and update the code to test the property foo
|
|
||||||
//var instane = new SwaggerPetstore.HasOnlyReadOnly();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.List();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('List', function() {
|
|
||||||
it('should create an instance of List', function() {
|
|
||||||
// uncomment below and update the code to test List
|
|
||||||
//var instane = new SwaggerPetstore.List();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.List);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _123List (base name: "123-list")', function() {
|
|
||||||
// uncomment below and update the code to test the property _123List
|
|
||||||
//var instane = new SwaggerPetstore.List();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.MapTest();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('MapTest', function() {
|
|
||||||
it('should create an instance of MapTest', function() {
|
|
||||||
// uncomment below and update the code to test MapTest
|
|
||||||
//var instane = new SwaggerPetstore.MapTest();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.MapTest);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property mapMapOfString (base name: "map_map_of_string")', function() {
|
|
||||||
// uncomment below and update the code to test the property mapMapOfString
|
|
||||||
//var instane = new SwaggerPetstore.MapTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property mapOfEnumString (base name: "map_of_enum_string")', function() {
|
|
||||||
// uncomment below and update the code to test the property mapOfEnumString
|
|
||||||
//var instane = new SwaggerPetstore.MapTest();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,77 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('MixedPropertiesAndAdditionalPropertiesClass', function() {
|
|
||||||
it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() {
|
|
||||||
// uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass
|
|
||||||
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property uuid (base name: "uuid")', function() {
|
|
||||||
// uncomment below and update the code to test the property uuid
|
|
||||||
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property dateTime (base name: "dateTime")', function() {
|
|
||||||
// uncomment below and update the code to test the property dateTime
|
|
||||||
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property map (base name: "map")', function() {
|
|
||||||
// uncomment below and update the code to test the property map
|
|
||||||
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Model200Response();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Model200Response', function() {
|
|
||||||
it('should create an instance of Model200Response', function() {
|
|
||||||
// uncomment below and update the code to test Model200Response
|
|
||||||
//var instane = new SwaggerPetstore.Model200Response();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Model200Response);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property name (base name: "name")', function() {
|
|
||||||
// uncomment below and update the code to test the property name
|
|
||||||
//var instane = new SwaggerPetstore.Model200Response();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _class (base name: "class")', function() {
|
|
||||||
// uncomment below and update the code to test the property _class
|
|
||||||
//var instane = new SwaggerPetstore.Model200Response();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.ModelReturn();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ModelReturn', function() {
|
|
||||||
it('should create an instance of ModelReturn', function() {
|
|
||||||
// uncomment below and update the code to test ModelReturn
|
|
||||||
//var instane = new SwaggerPetstore.ModelReturn();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.ModelReturn);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _return (base name: "return")', function() {
|
|
||||||
// uncomment below and update the code to test the property _return
|
|
||||||
//var instane = new SwaggerPetstore.ModelReturn();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,83 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Name();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Name', function() {
|
|
||||||
it('should create an instance of Name', function() {
|
|
||||||
// uncomment below and update the code to test Name
|
|
||||||
//var instane = new SwaggerPetstore.Name();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Name);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property name (base name: "name")', function() {
|
|
||||||
// uncomment below and update the code to test the property name
|
|
||||||
//var instane = new SwaggerPetstore.Name();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property snakeCase (base name: "snake_case")', function() {
|
|
||||||
// uncomment below and update the code to test the property snakeCase
|
|
||||||
//var instane = new SwaggerPetstore.Name();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property property (base name: "property")', function() {
|
|
||||||
// uncomment below and update the code to test the property property
|
|
||||||
//var instane = new SwaggerPetstore.Name();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property _123Number (base name: "123Number")', function() {
|
|
||||||
// uncomment below and update the code to test the property _123Number
|
|
||||||
//var instane = new SwaggerPetstore.Name();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.NumberOnly();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('NumberOnly', function() {
|
|
||||||
it('should create an instance of NumberOnly', function() {
|
|
||||||
// uncomment below and update the code to test NumberOnly
|
|
||||||
//var instane = new SwaggerPetstore.NumberOnly();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.NumberOnly);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property justNumber (base name: "JustNumber")', function() {
|
|
||||||
// uncomment below and update the code to test the property justNumber
|
|
||||||
//var instane = new SwaggerPetstore.NumberOnly();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,95 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Order();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Order', function() {
|
|
||||||
it('should create an instance of Order', function() {
|
|
||||||
// uncomment below and update the code to test Order
|
|
||||||
//var instane = new SwaggerPetstore.Order();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Order);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property id (base name: "id")', function() {
|
|
||||||
// uncomment below and update the code to test the property id
|
|
||||||
//var instane = new SwaggerPetstore.Order();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property petId (base name: "petId")', function() {
|
|
||||||
// uncomment below and update the code to test the property petId
|
|
||||||
//var instane = new SwaggerPetstore.Order();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property quantity (base name: "quantity")', function() {
|
|
||||||
// uncomment below and update the code to test the property quantity
|
|
||||||
//var instane = new SwaggerPetstore.Order();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property shipDate (base name: "shipDate")', function() {
|
|
||||||
// uncomment below and update the code to test the property shipDate
|
|
||||||
//var instane = new SwaggerPetstore.Order();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property status (base name: "status")', function() {
|
|
||||||
// uncomment below and update the code to test the property status
|
|
||||||
//var instane = new SwaggerPetstore.Order();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property complete (base name: "complete")', function() {
|
|
||||||
// uncomment below and update the code to test the property complete
|
|
||||||
//var instane = new SwaggerPetstore.Order();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,60 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
// OuterBoolean is not a member of SwaggerPetstore
|
|
||||||
//instance = new SwaggerPetstore.OuterBoolean();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('OuterBoolean', function() {
|
|
||||||
it('should create an instance of OuterBoolean', function() {
|
|
||||||
// uncomment below and update the code to test OuterBoolean
|
|
||||||
//var instane = new SwaggerPetstore.OuterBoolean();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.OuterBoolean);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,77 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.OuterComposite();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('OuterComposite', function() {
|
|
||||||
it('should create an instance of OuterComposite', function() {
|
|
||||||
// uncomment below and update the code to test OuterComposite
|
|
||||||
//var instane = new SwaggerPetstore.OuterComposite();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.OuterComposite);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property myNumber (base name: "my_number")', function() {
|
|
||||||
// uncomment below and update the code to test the property myNumber
|
|
||||||
//var instane = new SwaggerPetstore.OuterComposite();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property myString (base name: "my_string")', function() {
|
|
||||||
// uncomment below and update the code to test the property myString
|
|
||||||
//var instane = new SwaggerPetstore.OuterComposite();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property myBoolean (base name: "my_boolean")', function() {
|
|
||||||
// uncomment below and update the code to test the property myBoolean
|
|
||||||
//var instane = new SwaggerPetstore.OuterComposite();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,58 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('OuterEnum', function() {
|
|
||||||
it('should create an instance of OuterEnum', function() {
|
|
||||||
// uncomment below and update the code to test OuterEnum
|
|
||||||
//var instane = new SwaggerPetstore.OuterEnum();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.OuterEnum);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,60 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
// OuterNumber is not a member of SwaggerPetstore
|
|
||||||
//instance = new SwaggerPetstore.OuterNumber();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('OuterNumber', function() {
|
|
||||||
it('should create an instance of OuterNumber', function() {
|
|
||||||
// uncomment below and update the code to test OuterNumber
|
|
||||||
//var instane = new SwaggerPetstore.OuterNumber();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.OuterNumber);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,60 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
// OuterString is not a member of SwaggerPetstore
|
|
||||||
//instance = new SwaggerPetstore.OuterString();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('OuterString', function() {
|
|
||||||
it('should create an instance of OuterString', function() {
|
|
||||||
// uncomment below and update the code to test OuterString
|
|
||||||
//var instane = new SwaggerPetstore.OuterString();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.OuterString);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,95 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Pet();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Pet', function() {
|
|
||||||
it('should create an instance of Pet', function() {
|
|
||||||
// uncomment below and update the code to test Pet
|
|
||||||
//var instane = new SwaggerPetstore.Pet();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Pet);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property id (base name: "id")', function() {
|
|
||||||
// uncomment below and update the code to test the property id
|
|
||||||
//var instane = new SwaggerPetstore.Pet();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property category (base name: "category")', function() {
|
|
||||||
// uncomment below and update the code to test the property category
|
|
||||||
//var instane = new SwaggerPetstore.Pet();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property name (base name: "name")', function() {
|
|
||||||
// uncomment below and update the code to test the property name
|
|
||||||
//var instane = new SwaggerPetstore.Pet();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property photoUrls (base name: "photoUrls")', function() {
|
|
||||||
// uncomment below and update the code to test the property photoUrls
|
|
||||||
//var instane = new SwaggerPetstore.Pet();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property tags (base name: "tags")', function() {
|
|
||||||
// uncomment below and update the code to test the property tags
|
|
||||||
//var instane = new SwaggerPetstore.Pet();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property status (base name: "status")', function() {
|
|
||||||
// uncomment below and update the code to test the property status
|
|
||||||
//var instane = new SwaggerPetstore.Pet();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.ReadOnlyFirst();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ReadOnlyFirst', function() {
|
|
||||||
it('should create an instance of ReadOnlyFirst', function() {
|
|
||||||
// uncomment below and update the code to test ReadOnlyFirst
|
|
||||||
//var instane = new SwaggerPetstore.ReadOnlyFirst();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.ReadOnlyFirst);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property bar (base name: "bar")', function() {
|
|
||||||
// uncomment below and update the code to test the property bar
|
|
||||||
//var instane = new SwaggerPetstore.ReadOnlyFirst();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property baz (base name: "baz")', function() {
|
|
||||||
// uncomment below and update the code to test the property baz
|
|
||||||
//var instane = new SwaggerPetstore.ReadOnlyFirst();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.SpecialModelName();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('SpecialModelName', function() {
|
|
||||||
it('should create an instance of SpecialModelName', function() {
|
|
||||||
// uncomment below and update the code to test SpecialModelName
|
|
||||||
//var instane = new SwaggerPetstore.SpecialModelName();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.SpecialModelName);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property specialPropertyName (base name: "$special[property.name]")', function() {
|
|
||||||
// uncomment below and update the code to test the property specialPropertyName
|
|
||||||
//var instane = new SwaggerPetstore.SpecialModelName();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,71 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.Tag();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Tag', function() {
|
|
||||||
it('should create an instance of Tag', function() {
|
|
||||||
// uncomment below and update the code to test Tag
|
|
||||||
//var instane = new SwaggerPetstore.Tag();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.Tag);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property id (base name: "id")', function() {
|
|
||||||
// uncomment below and update the code to test the property id
|
|
||||||
//var instane = new SwaggerPetstore.Tag();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property name (base name: "name")', function() {
|
|
||||||
// uncomment below and update the code to test the property name
|
|
||||||
//var instane = new SwaggerPetstore.Tag();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -1,107 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
instance = new SwaggerPetstore.User();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('User', function() {
|
|
||||||
it('should create an instance of User', function() {
|
|
||||||
// uncomment below and update the code to test User
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.User);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property id (base name: "id")', function() {
|
|
||||||
// uncomment below and update the code to test the property id
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property username (base name: "username")', function() {
|
|
||||||
// uncomment below and update the code to test the property username
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property firstName (base name: "firstName")', function() {
|
|
||||||
// uncomment below and update the code to test the property firstName
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property lastName (base name: "lastName")', function() {
|
|
||||||
// uncomment below and update the code to test the property lastName
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property email (base name: "email")', function() {
|
|
||||||
// uncomment below and update the code to test the property email
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property password (base name: "password")', function() {
|
|
||||||
// uncomment below and update the code to test the property password
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property phone (base name: "phone")', function() {
|
|
||||||
// uncomment below and update the code to test the property phone
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have the property userStatus (base name: "userStatus")', function() {
|
|
||||||
// uncomment below and update the code to test the property userStatus
|
|
||||||
//var instane = new SwaggerPetstore.User();
|
|
||||||
//expect(instance).to.be();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
@ -48,10 +48,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('AnotherFakeApi', function() {
|
describe('AnotherFakeApi', function() {
|
||||||
describe('testSpecialTags', function() {
|
describe('call123testSpecialTags', function() {
|
||||||
it('should call testSpecialTags successfully', function(done) {
|
it('should call call123testSpecialTags successfully', function(done) {
|
||||||
//uncomment below and update the code to test testSpecialTags
|
//uncomment below and update the code to test call123testSpecialTags
|
||||||
//instance.testSpecialTags(function(error) {
|
//instance.call123testSpecialTags(function(error) {
|
||||||
// if (error) throw error;
|
// if (error) throw error;
|
||||||
//expect().to.be();
|
//expect().to.be();
|
||||||
//});
|
//});
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
@ -48,6 +48,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('FakeApi', function() {
|
describe('FakeApi', function() {
|
||||||
|
describe('createXmlItem', function() {
|
||||||
|
it('should call createXmlItem successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test createXmlItem
|
||||||
|
//instance.createXmlItem(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
describe('fakeOuterBooleanSerialize', function() {
|
describe('fakeOuterBooleanSerialize', function() {
|
||||||
it('should call fakeOuterBooleanSerialize successfully', function(done) {
|
it('should call fakeOuterBooleanSerialize successfully', function(done) {
|
||||||
//uncomment below and update the code to test fakeOuterBooleanSerialize
|
//uncomment below and update the code to test fakeOuterBooleanSerialize
|
||||||
@ -88,6 +98,16 @@
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
describe('testBodyWithFileSchema', function() {
|
||||||
|
it('should call testBodyWithFileSchema successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testBodyWithFileSchema
|
||||||
|
//instance.testBodyWithFileSchema(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
describe('testBodyWithQueryParams', function() {
|
describe('testBodyWithQueryParams', function() {
|
||||||
it('should call testBodyWithQueryParams successfully', function(done) {
|
it('should call testBodyWithQueryParams successfully', function(done) {
|
||||||
//uncomment below and update the code to test testBodyWithQueryParams
|
//uncomment below and update the code to test testBodyWithQueryParams
|
||||||
@ -128,6 +148,16 @@
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
describe('testGroupParameters', function() {
|
||||||
|
it('should call testGroupParameters successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testGroupParameters
|
||||||
|
//instance.testGroupParameters(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
describe('testInlineAdditionalProperties', function() {
|
describe('testInlineAdditionalProperties', function() {
|
||||||
it('should call testInlineAdditionalProperties successfully', function(done) {
|
it('should call testInlineAdditionalProperties successfully', function(done) {
|
||||||
//uncomment below and update the code to test testInlineAdditionalProperties
|
//uncomment below and update the code to test testInlineAdditionalProperties
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
@ -128,6 +128,16 @@
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
describe('uploadFileWithRequiredFile', function() {
|
||||||
|
it('should call uploadFileWithRequiredFile successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test uploadFileWithRequiredFile
|
||||||
|
//instance.uploadFileWithRequiredFile(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
@ -54,14 +54,68 @@
|
|||||||
//expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesClass);
|
//expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesClass);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have the property mapProperty (base name: "map_property")', function() {
|
it('should have the property mapString (base name: "map_string")', function() {
|
||||||
// uncomment below and update the code to test the property mapProperty
|
// uncomment below and update the code to test the property mapString
|
||||||
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
//expect(instance).to.be();
|
//expect(instance).to.be();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have the property mapOfMapProperty (base name: "map_of_map_property")', function() {
|
it('should have the property mapNumber (base name: "map_number")', function() {
|
||||||
// uncomment below and update the code to test the property mapOfMapProperty
|
// uncomment below and update the code to test the property mapNumber
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapInteger (base name: "map_integer")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapInteger
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapBoolean (base name: "map_boolean")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapBoolean
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapArrayInteger (base name: "map_array_integer")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapArrayInteger
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapArrayAnytype (base name: "map_array_anytype")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapArrayAnytype
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapMapString (base name: "map_map_string")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapMapString
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapMapAnytype (base name: "map_map_anytype")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapMapAnytype
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property anytype1 (base name: "anytype_1")', function() {
|
||||||
|
// uncomment below and update the code to test the property anytype1
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property anytype2 (base name: "anytype_2")', function() {
|
||||||
|
// uncomment below and update the code to test the property anytype2
|
||||||
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property anytype3 (base name: "anytype_3")', function() {
|
||||||
|
// uncomment below and update the code to test the property anytype3
|
||||||
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
|
||||||
//expect(instance).to.be();
|
//expect(instance).to.be();
|
||||||
});
|
});
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
@ -66,6 +66,18 @@
|
|||||||
//expect(instance).to.be();
|
//expect(instance).to.be();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should have the property directMap (base name: "direct_map")', function() {
|
||||||
|
// uncomment below and update the code to test the property directMap
|
||||||
|
//var instane = new OpenApiPetstore.MapTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property indirectMap (base name: "indirect_map")', function() {
|
||||||
|
// uncomment below and update the code to test the property indirectMap
|
||||||
|
//var instane = new OpenApiPetstore.MapTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
@ -1,60 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD.
|
|
||||||
define(['expect.js', '../../src/index'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
|
||||||
}
|
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var instance;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
// OuterBoolean is not a member of SwaggerPetstore
|
|
||||||
//instance = new SwaggerPetstore.OuterBoolean();
|
|
||||||
});
|
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
|
||||||
// Use getter method if present; otherwise, get the property directly.
|
|
||||||
if (typeof object[getter] === 'function')
|
|
||||||
return object[getter]();
|
|
||||||
else
|
|
||||||
return object[property];
|
|
||||||
}
|
|
||||||
|
|
||||||
var setProperty = function(object, setter, property, value) {
|
|
||||||
// Use setter method if present; otherwise, set the property directly.
|
|
||||||
if (typeof object[setter] === 'function')
|
|
||||||
object[setter](value);
|
|
||||||
else
|
|
||||||
object[property] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('OuterBoolean', function() {
|
|
||||||
it('should create an instance of OuterBoolean', function() {
|
|
||||||
// uncomment below and update the code to test OuterBoolean
|
|
||||||
//var instane = new SwaggerPetstore.OuterBoolean();
|
|
||||||
//expect(instance).to.be.a(SwaggerPetstore.OuterBoolean);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}));
|
|
@ -14,10 +14,10 @@
|
|||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD.
|
// AMD.
|
||||||
define(['expect.js', '../../src/index'], factory);
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.OpenApiPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user