mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 08:57:04 +00:00
JavaScript: update Petstore sample and fix tests
This commit is contained in:
@@ -12,8 +12,28 @@ describe('ApiClient', function() {
|
||||
expect(apiClient).to.be.ok();
|
||||
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'}
|
||||
petstore_auth: {type: 'oauth2'},
|
||||
api_key: {type: 'apiKey', in: 'header', name: 'api_key'},
|
||||
test_api_client_id: {
|
||||
type: 'apiKey',
|
||||
in: 'header',
|
||||
name: 'x-test_api_client_id'
|
||||
},
|
||||
test_api_client_secret: {
|
||||
type: 'apiKey',
|
||||
in: 'header',
|
||||
name: 'x-test_api_client_secret'
|
||||
},
|
||||
test_api_key_query: {
|
||||
type: 'apiKey',
|
||||
in: 'query',
|
||||
name: 'test_api_key_query'
|
||||
},
|
||||
test_api_key_header: {
|
||||
type: 'apiKey',
|
||||
in: 'header',
|
||||
name: 'test_api_key_header'
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user