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