forked from loafle/openapi-generator-original
[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:
committed by
William Cheng
parent
c4d982f775
commit
8977d7b366
@@ -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.FakeApi();
|
||||
instance = new OpenApiPetstore.FakeApi();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
@@ -35,10 +50,130 @@
|
||||
}
|
||||
|
||||
describe('FakeApi', function() {
|
||||
describe('createXmlItem', function() {
|
||||
it('should call createXmlItem successfully', function(done) {
|
||||
//uncomment below and update the code to test createXmlItem
|
||||
//instance.createXmlItem(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('fakeOuterBooleanSerialize', function() {
|
||||
it('should call fakeOuterBooleanSerialize successfully', function(done) {
|
||||
//uncomment below and update the code to test fakeOuterBooleanSerialize
|
||||
//instance.fakeOuterBooleanSerialize(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('fakeOuterCompositeSerialize', function() {
|
||||
it('should call fakeOuterCompositeSerialize successfully', function(done) {
|
||||
//uncomment below and update the code to test fakeOuterCompositeSerialize
|
||||
//instance.fakeOuterCompositeSerialize(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('fakeOuterNumberSerialize', function() {
|
||||
it('should call fakeOuterNumberSerialize successfully', function(done) {
|
||||
//uncomment below and update the code to test fakeOuterNumberSerialize
|
||||
//instance.fakeOuterNumberSerialize(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('fakeOuterStringSerialize', function() {
|
||||
it('should call fakeOuterStringSerialize successfully', function(done) {
|
||||
//uncomment below and update the code to test fakeOuterStringSerialize
|
||||
//instance.fakeOuterStringSerialize(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testBodyWithFileSchema', function() {
|
||||
it('should call testBodyWithFileSchema successfully', function(done) {
|
||||
//uncomment below and update the code to test testBodyWithFileSchema
|
||||
//instance.testBodyWithFileSchema(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testBodyWithQueryParams', function() {
|
||||
it('should call testBodyWithQueryParams successfully', function(done) {
|
||||
//uncomment below and update the code to test testBodyWithQueryParams
|
||||
//instance.testBodyWithQueryParams(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testClientModel', function() {
|
||||
it('should call testClientModel successfully', function(done) {
|
||||
//uncomment below and update the code to test testClientModel
|
||||
//instance.testClientModel(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testEndpointParameters', function() {
|
||||
it('should call testEndpointParameters successfully', function(done) {
|
||||
//uncomment below and update the code to test testEndpointParameters
|
||||
//instance.testEndpointParameters(pet, function(error) {
|
||||
//instance.testEndpointParameters(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testEnumParameters', function() {
|
||||
it('should call testEnumParameters successfully', function(done) {
|
||||
//uncomment below and update the code to test testEnumParameters
|
||||
//instance.testEnumParameters(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testGroupParameters', function() {
|
||||
it('should call testGroupParameters successfully', function(done) {
|
||||
//uncomment below and update the code to test testGroupParameters
|
||||
//instance.testGroupParameters(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testInlineAdditionalProperties', function() {
|
||||
it('should call testInlineAdditionalProperties successfully', function(done) {
|
||||
//uncomment below and update the code to test testInlineAdditionalProperties
|
||||
//instance.testInlineAdditionalProperties(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('testJsonFormData', function() {
|
||||
it('should call testJsonFormData successfully', function(done) {
|
||||
//uncomment below and update the code to test testJsonFormData
|
||||
//instance.testJsonFormData(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
|
||||
Reference in New Issue
Block a user