Add fixes for es6 generator (#180)

Various fixes for JS (ES6) generator
This commit is contained in:
delenius
2018-06-16 10:59:23 -07:00
committed by William Cheng
parent 53d9878cf2
commit c607ea8b31
194 changed files with 8532 additions and 5008 deletions

View File

@@ -1,12 +1,12 @@
/**
* Swagger Petstore
* 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
* Contact: apiteam@swagger.io
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
@@ -20,15 +20,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.SwaggerPetstore);
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, SwaggerPetstore) {
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new SwaggerPetstore.AnotherFakeApi();
instance = new OpenApiPetstore.AnotherFakeApi();
});
var getProperty = function(object, getter, property) {