Skip to content

Commit 65dde53

Browse files
committed
Update snippet.test.js
1 parent 0646087 commit 65dde53

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

codegens/nodejs-axios/test/unit/snippet.test.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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 () {

0 commit comments

Comments
 (0)