mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 02:36:08 +00:00
[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
@@ -14,10 +14,10 @@
|
||||
(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);
|
||||
@@ -48,10 +48,10 @@
|
||||
}
|
||||
|
||||
describe('AnotherFakeApi', function() {
|
||||
describe('testSpecialTags', function() {
|
||||
it('should call testSpecialTags successfully', function(done) {
|
||||
//uncomment below and update the code to test testSpecialTags
|
||||
//instance.testSpecialTags(function(error) {
|
||||
describe('call123testSpecialTags', function() {
|
||||
it('should call call123testSpecialTags successfully', function(done) {
|
||||
//uncomment below and update the code to test call123testSpecialTags
|
||||
//instance.call123testSpecialTags(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
(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);
|
||||
@@ -48,6 +48,16 @@
|
||||
}
|
||||
|
||||
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
|
||||
@@ -88,6 +98,16 @@
|
||||
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
|
||||
@@ -128,6 +148,16 @@
|
||||
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
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
(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);
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
(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);
|
||||
@@ -128,6 +128,16 @@
|
||||
done();
|
||||
});
|
||||
});
|
||||
describe('uploadFileWithRequiredFile', function() {
|
||||
it('should call uploadFileWithRequiredFile successfully', function(done) {
|
||||
//uncomment below and update the code to test uploadFileWithRequiredFile
|
||||
//instance.uploadFileWithRequiredFile(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
}));
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
(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);
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
(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);
|
||||
|
||||
Reference in New Issue
Block a user