Skip to content

Commit

Permalink
chore: Update devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoltman committed Jan 21, 2020
1 parent cd9689e commit abc0087
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@
"end-of-stream": "^1.4.4"
},
"devDependencies": {
"@nwoltman/eslint-config": "^0.5.1",
"@nwoltman/eslint-config": "^0.6.0",
"JSONStream": "^1.3.5",
"autocannon": "^4.2.0",
"autocannon": "^4.4.2",
"branch-comparer": "^0.4.0",
"concurrently": "^5.0.0",
"coveralls": "^3.0.7",
"eslint": "^6.6.0",
"got": "^9.6.0",
"concurrently": "^5.0.2",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"got": "^10.2.2",
"h2url": "^0.2.0",
"pre-commit": "^1.2.2",
"pump": "^3.0.0",
"send": "^0.17.1",
"streaming-json-stringify": "^3.1.0",
"tap": "^14.9.1"
"tap": "^14.10.6"
},
"pre-commit": [
"lint"
Expand Down
4 changes: 2 additions & 2 deletions test/Response-send.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ test('buffer without Content-Type should default to application/octet-stream', (
res.send(Buffer.alloc(1024))
})

request(app, '/', {encoding: null}, (err, res) => {
request(app, '/', {responseType: 'buffer'}, (err, res) => {
t.error(err)
t.strictEqual(res.headers['content-type'], 'application/octet-stream')
t.strictDeepEqual(res.body, Buffer.alloc(1024))
Expand All @@ -168,7 +168,7 @@ test('buffer with Content-Type should not change the Content-Type', (t) => {
res.send(Buffer.alloc(1024))
})

request(app, '/', {encoding: null}, (err, res) => {
request(app, '/', {responseType: 'buffer'}, (err, res) => {
t.error(err)
t.strictEqual(res.headers['content-type'], 'text/plain')
t.strictDeepEqual(res.body, Buffer.alloc(1024))
Expand Down
11 changes: 6 additions & 5 deletions test/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ async function request(app, url, options, cb) {
if (typeof url === 'object') {
cb = options
options = undefined
url.baseUrl = (url.rejectUnauthorized === false ? 'https' : 'http') +
'://localhost:' + app.server.address().port
url.url = (url.rejectUnauthorized === false ? 'https' : 'http') +
'://localhost:' + app.server.address().port + url.url
} else if (typeof options === 'object') {
options.baseUrl = (options.rejectUnauthorized === false ? 'https' : 'http') +
'://localhost:' + app.server.address().port
url = (options.rejectUnauthorized === false ? 'https' : 'http') +
'://localhost:' + app.server.address().port + url
} else {
cb = options
options = {baseUrl: 'http://localhost:' + app.server.address().port}
options = undefined
url = 'http://localhost:' + app.server.address().port + url
}

if (cb === undefined) {
Expand Down

0 comments on commit abc0087

Please sign in to comment.