Skip to content

Commit fa60724

Browse files
committed
Added option to set preferred request body content-type
1 parent 4be1a1c commit fa60724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/schemaUtilsV2.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('resolveRequestBodyForPostmanRequest function', function () {
101101
expect(result.body.mode).to.equal('urlencoded');
102102
});
103103

104-
it('should return raw request body as fallback when preferredRequestBodyType is not a valid option', function () {
104+
it('should return encoded request body as fallback when preferredRequestBodyType is not a valid option', function () {
105105
const contextTest = {
106106
concreteUtils,
107107
schemaCache: {},
@@ -114,7 +114,7 @@ describe('resolveRequestBodyForPostmanRequest function', function () {
114114
operationItemTest = operationItem.put,
115115
result = resolveRequestBodyForPostmanRequest(contextTest, operationItemTest);
116116

117-
expect(result.body.mode).to.equal('raw');
117+
expect(result.body.mode).to.equal('urlencoded');
118118
});
119119

120120
it('should return encoded request body when preferredRequestBodyType is x-www-form-urlencoded', function () {

0 commit comments

Comments
 (0)