File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
codegens/nodejs-axios/test/unit Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,21 @@ describe('nodejs-axios convert function', function () {
424424 } ) ;
425425 } ) ;
426426
427+ it ( 'should return snippet with maxBodyLength property set as "Infinity"' , function ( ) {
428+ request = new sdk . Request ( mainCollection . item [ 0 ] . request ) ;
429+ options = {
430+ requestTimeout : 1000
431+ } ;
432+ convert ( request , options , function ( error , snippet ) {
433+ if ( error ) {
434+ expect . fail ( null , null , error ) ;
435+ return ;
436+ }
437+ expect ( snippet ) . to . be . a ( 'string' ) ;
438+ expect ( snippet ) . to . include ( 'maxBodyLength: Infinity' ) ;
439+ } ) ;
440+ } ) ;
441+
427442 describe ( 'getOptions function' , function ( ) {
428443
429444 it ( 'should return an array of specific options' , function ( ) {
You can’t perform that action at this time.
0 commit comments