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.UserApi();
|
||||
instance = new OpenApiPetstore.UserApi();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
@@ -38,7 +53,7 @@
|
||||
describe('createUser', function() {
|
||||
it('should call createUser successfully', function(done) {
|
||||
//uncomment below and update the code to test createUser
|
||||
//instance.createUser(pet, function(error) {
|
||||
//instance.createUser(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
@@ -48,7 +63,7 @@
|
||||
describe('createUsersWithArrayInput', function() {
|
||||
it('should call createUsersWithArrayInput successfully', function(done) {
|
||||
//uncomment below and update the code to test createUsersWithArrayInput
|
||||
//instance.createUsersWithArrayInput(pet, function(error) {
|
||||
//instance.createUsersWithArrayInput(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
@@ -58,7 +73,7 @@
|
||||
describe('createUsersWithListInput', function() {
|
||||
it('should call createUsersWithListInput successfully', function(done) {
|
||||
//uncomment below and update the code to test createUsersWithListInput
|
||||
//instance.createUsersWithListInput(pet, function(error) {
|
||||
//instance.createUsersWithListInput(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
@@ -68,7 +83,7 @@
|
||||
describe('deleteUser', function() {
|
||||
it('should call deleteUser successfully', function(done) {
|
||||
//uncomment below and update the code to test deleteUser
|
||||
//instance.deleteUser(pet, function(error) {
|
||||
//instance.deleteUser(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
@@ -78,7 +93,7 @@
|
||||
describe('getUserByName', function() {
|
||||
it('should call getUserByName successfully', function(done) {
|
||||
//uncomment below and update the code to test getUserByName
|
||||
//instance.getUserByName(pet, function(error) {
|
||||
//instance.getUserByName(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
@@ -88,7 +103,7 @@
|
||||
describe('loginUser', function() {
|
||||
it('should call loginUser successfully', function(done) {
|
||||
//uncomment below and update the code to test loginUser
|
||||
//instance.loginUser(pet, function(error) {
|
||||
//instance.loginUser(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
@@ -98,7 +113,7 @@
|
||||
describe('logoutUser', function() {
|
||||
it('should call logoutUser successfully', function(done) {
|
||||
//uncomment below and update the code to test logoutUser
|
||||
//instance.logoutUser(pet, function(error) {
|
||||
//instance.logoutUser(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
@@ -108,7 +123,7 @@
|
||||
describe('updateUser', function() {
|
||||
it('should call updateUser successfully', function(done) {
|
||||
//uncomment below and update the code to test updateUser
|
||||
//instance.updateUser(pet, function(error) {
|
||||
//instance.updateUser(function(error) {
|
||||
// if (error) throw error;
|
||||
//expect().to.be();
|
||||
//});
|
||||
|
||||
Reference in New Issue
Block a user