Skip to content

Commit

Permalink
Fix tests and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier committed May 4, 2018
1 parent 7bdaa82 commit 63ec162
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 26 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 26 additions & 25 deletions packages/insomnia-app/app/network/__tests__/network.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('actuallySend()', () => {
const request = Object.assign(models.request.init(), {
_id: 'req_123',
parentId: workspace._id,
headers: [{name: 'Content-Type', value: 'application/json'}],
headers: [{name: 'Content-Type', value: 'application/json'}, {name: 'Empty', value: ''}],
parameters: [{name: 'foo bar', value: 'hello&world'}],
method: 'POST',
body: {
Expand Down Expand Up @@ -93,10 +93,11 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Content-Type: application/json',
'Expect: ',
'Transfer-Encoding: ',
'Empty;',
'Expect:',
'Transfer-Encoding:',
'Accept: */*',
'Accept-Encoding: '
'Accept-Encoding:'
],
NOPROGRESS: false,
USERNAME: 'user',
Expand Down Expand Up @@ -154,10 +155,10 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Content-Type: application/x-www-form-urlencoded',
'Expect: ',
'Transfer-Encoding: ',
'Expect:',
'Transfer-Encoding:',
'Accept: */*',
'Accept-Encoding: '
'Accept-Encoding:'
],
NOPROGRESS: false,
POSTFIELDS: 'foo=bar&bar=&=value',
Expand Down Expand Up @@ -240,10 +241,10 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Content-Type: application/json',
'Expect: ',
'Transfer-Encoding: ',
'Expect:',
'Transfer-Encoding:',
'Accept: */*',
'Accept-Encoding: '
'Accept-Encoding:'
],
NOPROGRESS: false,
USERNAME: 'user',
Expand Down Expand Up @@ -298,10 +299,10 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Content-Type: application/octet-stream',
'Expect: ',
'Transfer-Encoding: ',
'Expect:',
'Transfer-Encoding:',
'Accept: */*',
'Accept-Encoding: '
'Accept-Encoding:'
],
NOPROGRESS: false,
INFILESIZE_LARGE: 26,
Expand Down Expand Up @@ -364,10 +365,10 @@ describe('actuallySend()', () => {
CUSTOMREQUEST: 'POST',
HTTPHEADER: [
'Content-Type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY',
'Expect: ',
'Transfer-Encoding: ',
'Expect:',
'Transfer-Encoding:',
'Accept: */*',
'Accept-Encoding: '
'Accept-Encoding:'
],
INFILESIZE_LARGE: 244,
NOPROGRESS: false,
Expand Down Expand Up @@ -428,8 +429,8 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Accept: */*',
'Accept-Encoding: ',
'content-type: '
'Accept-Encoding:',
'content-type:'
],
NOPROGRESS: false,
PROXY: '',
Expand Down Expand Up @@ -476,8 +477,8 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Accept: */*',
'Accept-Encoding: ',
'content-type: '
'Accept-Encoding:',
'content-type:'
],
NOPROGRESS: false,
PROXY: '',
Expand Down Expand Up @@ -523,8 +524,8 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Accept: */*',
'Accept-Encoding: ',
'content-type: '
'Accept-Encoding:',
'content-type:'
],
NOPROGRESS: false,
PROXY: '',
Expand Down Expand Up @@ -571,8 +572,8 @@ describe('actuallySend()', () => {
FOLLOWLOCATION: true,
HTTPHEADER: [
'Accept: */*',
'Accept-Encoding: ',
'content-type: '
'Accept-Encoding:',
'content-type:'
],
NOPROGRESS: false,
PROXY: '',
Expand Down Expand Up @@ -632,7 +633,7 @@ describe('_getAwsAuthHeaders', () => {
},
headers: [
'Accept: */*',
'Accept-Encoding: '
'Accept-Encoding:'
],
url: 'https://example.com',
method: 'GET'
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "insomnia",
"productName": "Insomnia",
"longName": "Insomnia REST Client",
"version": "5.16.1",
"version": "5.16.2",
"main": "main.min.js"
},
"licence": "MIT",
Expand Down

0 comments on commit 63ec162

Please sign in to comment.