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.AdditionalPropertiesClass();
instance = new OpenApiPetstore.AdditionalPropertiesClass();
});
var getProperty = function(object, getter, property) {
@@ -50,19 +50,19 @@
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);
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
//expect(instance).to.be.a(OpenApiPetstore.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();
//var instane = new OpenApiPetstore.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();
//var instane = new OpenApiPetstore.AdditionalPropertiesClass();
//expect(instance).to.be();
});