[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,21 +1,36 @@
/**
* 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
*
* OpenAPI Generator version: 4.0.0-SNAPSHOT
*
* Do not edit the class manually.
*
*/
(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.OpenAPIPetstore);
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenAPIPetstore) {
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass();
instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass();
});
var getProperty = function(object, getter, property) {
@@ -37,25 +52,25 @@
describe('MixedPropertiesAndAdditionalPropertiesClass', function() {
it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() {
// uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass
//var instane = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be.a(OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass);
//var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be.a(OpenApiPetstore.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 OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//var instance = new OpenApiPetstore.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 OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//var instance = new OpenApiPetstore.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 OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be();
});