mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +00:00
update JS test case
This commit is contained in:
@@ -13,7 +13,11 @@ describe('ApiClient', function() {
|
||||
expect(apiClient.basePath).to.be('http://petstore.swagger.io/v2');
|
||||
expect(apiClient.authentications).to.eql({
|
||||
petstore_auth: {type: 'oauth2'},
|
||||
api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
||||
api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'}
|
||||
/* comment out the following as these fake security def (testing purpose)
|
||||
* are removed from the spec, we'll add these back after updating the
|
||||
* petstore server
|
||||
*
|
||||
test_http_basic: {type: 'basic'},
|
||||
test_api_client_id: {
|
||||
type: 'apiKey',
|
||||
@@ -34,7 +38,7 @@ describe('ApiClient', function() {
|
||||
type: 'apiKey',
|
||||
'in': 'header',
|
||||
name: 'test_api_key_header'
|
||||
}
|
||||
}*/
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user