[JS] fix template directory for ES5 (#6253)

* fix #5845 (template dir)

* fix js petstore test case
This commit is contained in:
wing328
2017-08-07 22:10:56 +08:00
committed by GitHub
parent 43e53dadda
commit fca8d81b2b
18 changed files with 71 additions and 14 deletions

View File

@@ -14,7 +14,8 @@ describe('ApiClient', function() {
expect(apiClient.authentications).to.eql({
petstore_auth: {type: 'oauth2'},
http_basic_test: {type: 'basic'},
api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'}
api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'},
api_key_query: {type: 'apiKey', 'in': 'query', name: 'api_key_query'},
/* commented out the following as these fake security def (testing purpose)
* has been removed from the spec, we'll add it back after updating the
* petstore server