@@ -39,7 +39,7 @@ describe('help options', function () {
3939 { summary : 'test operation' } , { } , { } , new auth . SwaggerAuthorizations ( ) ) ;
4040 var curl = op . asCurl ( { } ) ;
4141
42- expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/json\' " http://localhost/path" ' ) ;
42+ expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/json\' \' http://localhost/path\' ' ) ;
4343 } ) ;
4444
4545 it ( 'does not duplicate api_key in query param per #624' , function ( ) {
@@ -56,7 +56,7 @@ describe('help options', function () {
5656 // repeat to ensure no change
5757 curl = op . asCurl ( { } ) ;
5858
59- expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/json\' " http://localhost/path?api_key=abc123" ' ) ;
59+ expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/json\' \' http://localhost/path?api_key=abc123\' ' ) ;
6060 } ) ;
6161
6262 it ( 'prints a curl statement with headers' , function ( ) {
@@ -86,7 +86,7 @@ describe('help options', function () {
8686 Authorization : 'Oauth:"test"'
8787 } ) ;
8888
89- expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/json\' --header \'name: tony\' --header \'age: 42\' --header \'Authorization: Oauth:"test"\' " http://localhost/path" ' ) ;
89+ expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/json\' --header \'name: tony\' --header \'age: 42\' --header \'Authorization: Oauth:"test"\' \' http://localhost/path\' ' ) ;
9090 } ) ;
9191
9292 it ( 'prints a curl statement with custom content-type' , function ( ) {
@@ -96,6 +96,6 @@ describe('help options', function () {
9696 responseContentType : 'application/xml'
9797 } ) ;
9898
99- expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/xml\' " http://localhost/path" ' ) ;
99+ expect ( curl ) . toBe ( 'curl -X GET --header \'Accept: application/xml\' \' http://localhost/path\' ' ) ;
100100 } ) ;
101101} ) ;
0 commit comments