mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-25 16:19:20 -04:00
Fix tests
This commit is contained in:
1 parent
dea202cf1f
commit
feca747e06
1 file changed
+49
-10
@@ -78,7 +78,10 @@ describe('actuallySend()', () => {
|
||||
HTTPHEADER: [
|
||||
'Content-Type: application/json',
|
||||
'Expect: ',
|
||||
'Transfer-Encoding: '
|
||||
'Transfer-Encoding: ',
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
USERNAME: 'user',
|
||||
@@ -131,7 +134,10 @@ describe('actuallySend()', () => {
|
||||
HTTPHEADER: [
|
||||
'Content-Type: application/x-www-form-urlencoded',
|
||||
'Expect: ',
|
||||
'Transfer-Encoding: '
|
||||
'Transfer-Encoding: ',
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
POSTFIELDS: 'foo=bar&bar=&=value',
|
||||
@@ -209,7 +215,10 @@ describe('actuallySend()', () => {
|
||||
HTTPHEADER: [
|
||||
'Content-Type: application/json',
|
||||
'Expect: ',
|
||||
'Transfer-Encoding: '
|
||||
'Transfer-Encoding: ',
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
USERNAME: 'user',
|
||||
@@ -259,7 +268,10 @@ describe('actuallySend()', () => {
|
||||
HTTPHEADER: [
|
||||
'Content-Type: application/octet-stream',
|
||||
'Expect: ',
|
||||
'Transfer-Encoding: '
|
||||
'Transfer-Encoding: ',
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
INFILESIZE_LARGE: 26,
|
||||
@@ -316,7 +328,10 @@ describe('actuallySend()', () => {
|
||||
HTTPHEADER: [
|
||||
'Content-Type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY',
|
||||
'Expect: ',
|
||||
'Transfer-Encoding: '
|
||||
'Transfer-Encoding: ',
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: '
|
||||
],
|
||||
INFILESIZE_LARGE: 244,
|
||||
NOPROGRESS: false,
|
||||
@@ -364,7 +379,12 @@ describe('actuallySend()', () => {
|
||||
ACCEPT_ENCODING: '',
|
||||
COOKIEFILE: '',
|
||||
FOLLOWLOCATION: true,
|
||||
HTTPHEADER: ['content-type: '],
|
||||
HTTPHEADER: [
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: ',
|
||||
'content-type: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
PROXY: '',
|
||||
TIMEOUT_MS: 0,
|
||||
@@ -398,7 +418,12 @@ describe('actuallySend()', () => {
|
||||
ACCEPT_ENCODING: '',
|
||||
COOKIEFILE: '',
|
||||
FOLLOWLOCATION: true,
|
||||
HTTPHEADER: ['content-type: '],
|
||||
HTTPHEADER: [
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: ',
|
||||
'content-type: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
PROXY: '',
|
||||
TIMEOUT_MS: 0,
|
||||
@@ -431,7 +456,12 @@ describe('actuallySend()', () => {
|
||||
ACCEPT_ENCODING: '',
|
||||
COOKIEFILE: '',
|
||||
FOLLOWLOCATION: true,
|
||||
HTTPHEADER: ['content-type: '],
|
||||
HTTPHEADER: [
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: ',
|
||||
'content-type: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
PROXY: '',
|
||||
TIMEOUT_MS: 0,
|
||||
@@ -465,7 +495,12 @@ describe('actuallySend()', () => {
|
||||
ACCEPT_ENCODING: '',
|
||||
COOKIEFILE: '',
|
||||
FOLLOWLOCATION: true,
|
||||
HTTPHEADER: ['content-type: '],
|
||||
HTTPHEADER: [
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: ',
|
||||
'content-type: '
|
||||
],
|
||||
NOPROGRESS: false,
|
||||
PROXY: '',
|
||||
TIMEOUT_MS: 0,
|
||||
@@ -516,7 +551,11 @@ describe('_getAwsAuthHeaders', () => {
|
||||
accessKeyId: 'AKIA99999999',
|
||||
secretAccessKey: 'SAK9999999999999'
|
||||
},
|
||||
headers: [],
|
||||
headers: [
|
||||
'Connection: close',
|
||||
'Accept: ',
|
||||
'Accept-Encoding: '
|
||||
],
|
||||
url: 'https://example.com',
|
||||
method: 'GET'
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user