Browse Source

bump dev dependencies

http2
Sindre Sorhus 9 years ago
committed by Vsevolod Strukchinsky
parent
commit
9fefbb3c02
  1. 11
      package.json
  2. 4
      test/arguments.js
  3. 4
      test/error.js
  4. 4
      test/gzip.js
  5. 6
      test/headers.js
  6. 4
      test/helpers.js
  7. 4
      test/http.js
  8. 4
      test/https.js
  9. 4
      test/json.js
  10. 4
      test/post.js
  11. 4
      test/redirects.js
  12. 4
      test/retry.js
  13. 5
      test/stream.js
  14. 4
      test/unix-socket.js

11
package.json

@ -58,11 +58,11 @@
"url-parse-lax": "^1.0.0" "url-parse-lax": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"ava": "^0.7.0", "ava": "^0.8.0",
"coveralls": "^2.11.4", "coveralls": "^2.11.4",
"get-port": "^2.0.0", "get-port": "^2.0.0",
"into-stream": "^2.0.0", "into-stream": "^2.0.0",
"nyc": "^4.0.1", "nyc": "^5.0.1",
"pem": "^1.4.4", "pem": "^1.4.4",
"pify": "^2.3.0", "pify": "^2.3.0",
"tempfile": "^1.1.1", "tempfile": "^1.1.1",
@ -71,10 +71,7 @@
"xo": { "xo": {
"esnext": true, "esnext": true,
"ignores": [ "ignores": [
"test/**" "test/_*"
], ]
"rules": {
"prefer-reflect": 1
}
} }
} }

4
test/arguments.js

@ -4,7 +4,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -57,6 +57,6 @@ test('accepts url.parse object as first argument', async t => {
t.is((await got({hostname: s.host, port: s.port, path: '/test'})).body, '/test'); t.is((await got({hostname: s.host, port: s.port, path: '/test'})).body, '/test');
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/error.js

@ -4,7 +4,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -51,6 +51,6 @@ test('options.body error message', async t => {
} }
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/gzip.js

@ -7,7 +7,7 @@ const testContent = 'Compressible response content.\n';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -56,6 +56,6 @@ test('do not break HEAD responses', async t => {
t.is((await got.head(s.url)).body, ''); t.is((await got.head(s.url)).body, '');
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

6
test/headers.js

@ -4,7 +4,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -29,7 +29,7 @@ test('accept header with json option', async t => {
let headers = (await got(s.url, {json: true})).body; let headers = (await got(s.url, {json: true})).body;
t.is(headers.accept, 'application/json'); t.is(headers.accept, 'application/json');
headers = (await got(s.url, {headers: {'accept': ''}, json: true})).body; headers = (await got(s.url, {headers: {accept: ''}, json: true})).body;
t.is(headers.accept, ''); t.is(headers.accept, '');
}); });
@ -48,6 +48,6 @@ test('zero content-length', async t => {
t.is(headers['content-length'], '0'); t.is(headers['content-length'], '0');
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/helpers.js

@ -4,7 +4,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -37,6 +37,6 @@ test('promise mode', async t => {
} }
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/http.js

@ -4,7 +4,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -70,6 +70,6 @@ test('query option', async t => {
t.is((await got(s.url, {query: 'recent=true'})).body, 'recent'); t.is((await got(s.url, {query: 'recent=true'})).body, 'recent');
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/https.js

@ -12,7 +12,7 @@ let caRootCert;
const pemP = pify(pem, Promise); const pemP = pify(pem, Promise);
test.before('setup', async t => { test.before('setup', async () => {
const caKeys = await pemP.createCertificate({days: 1, selfSigned: true}); const caKeys = await pemP.createCertificate({days: 1, selfSigned: true});
caRootKey = caKeys.serviceKey; caRootKey = caKeys.serviceKey;
@ -58,6 +58,6 @@ test('make request to https server with ca', async t => {
t.is(body, 'ok'); t.is(body, 'ok');
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/json.js

@ -4,7 +4,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -73,6 +73,6 @@ test('catches errors on invalid non-200 responses', async t => {
} }
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/post.js

@ -5,7 +5,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -109,6 +109,6 @@ test('content-type header is not overriden when object in options.body', async t
t.is(body['content-type'], 'doge'); t.is(body['content-type'], 'doge');
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/redirects.js

@ -4,7 +4,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -78,6 +78,6 @@ test('redirect only GET and HEAD requests', async t => {
} }
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/retry.js

@ -7,7 +7,7 @@ let trys = 0;
let knocks = 0; let knocks = 0;
let fifth = 0; let fifth = 0;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/long', () => {}); s.on('/long', () => {});
@ -69,6 +69,6 @@ test('falsy value prevent retries', async t => {
} }
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

5
test/stream.js

@ -5,7 +5,7 @@ import {createServer} from './_server';
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -117,9 +117,8 @@ test.cb('accepts option.body as Stream', t => {
t.is(chunk.toString(), 'wow'); t.is(chunk.toString(), 'wow');
t.end(); t.end();
}); });
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

4
test/unix-socket.js

@ -8,7 +8,7 @@ const socketPath = tempfile('.socket');
let s; let s;
test.before('setup', async t => { test.before('setup', async () => {
s = await createServer(); s = await createServer();
s.on('/', (req, res) => { s.on('/', (req, res) => {
@ -28,6 +28,6 @@ test('protocol-less works', async t => {
t.is((await got(url)).body, 'ok'); t.is((await got(url)).body, 'ok');
}); });
test.after('cleanup', async t => { test.after('cleanup', async () => {
await s.close(); await s.close();
}); });

Loading…
Cancel
Save