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,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.Dog();
|
||||
instance = new OpenApiPetstore.Dog();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
@@ -50,13 +50,13 @@
|
||||
describe('Dog', function() {
|
||||
it('should create an instance of Dog', function() {
|
||||
// uncomment below and update the code to test Dog
|
||||
//var instane = new SwaggerPetstore.Dog();
|
||||
//expect(instance).to.be.a(SwaggerPetstore.Dog);
|
||||
//var instane = new OpenApiPetstore.Dog();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.Dog);
|
||||
});
|
||||
|
||||
it('should have the property breed (base name: "breed")', function() {
|
||||
// uncomment below and update the code to test the property breed
|
||||
//var instane = new SwaggerPetstore.Dog();
|
||||
//var instane = new OpenApiPetstore.Dog();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user