[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:
Vincent Devos
2019-03-30 03:04:44 +01:00
committed by William Cheng
parent c4d982f775
commit 8977d7b366
294 changed files with 3031 additions and 7681 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.
*
*/
@@ -14,21 +14,21 @@
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../src/index'], factory);
define(['expect.js', process.cwd()+'/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'));
factory(require('expect.js'), require(process.cwd()+'/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.MapTest();
instance = new OpenApiPetstore.MapTest();
});
var getProperty = function(object, getter, property) {
@@ -50,19 +50,31 @@
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);
//var instane = new OpenApiPetstore.MapTest();
//expect(instance).to.be.a(OpenApiPetstore.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();
//var instane = new OpenApiPetstore.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();
//var instane = new OpenApiPetstore.MapTest();
//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();
});