Skip to content

Commit

Permalink
bump dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 22, 2015
1 parent 0d90e18 commit 7917413
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 35 deletions.
11 changes: 4 additions & 7 deletions package.json
Expand Up @@ -58,11 +58,11 @@
"url-parse-lax": "^1.0.0"
},
"devDependencies": {
"ava": "^0.7.0",
"ava": "^0.8.0",
"coveralls": "^2.11.4",
"get-port": "^2.0.0",
"into-stream": "^2.0.0",
"nyc": "^4.0.1",
"nyc": "^5.0.1",
"pem": "^1.4.4",
"pify": "^2.3.0",
"tempfile": "^1.1.1",
Expand All @@ -71,10 +71,7 @@
"xo": {
"esnext": true,
"ignores": [
"test/**"
],
"rules": {
"prefer-reflect": 1
}
"test/_*"
]
}
}
4 changes: 2 additions & 2 deletions test/arguments.js
Expand Up @@ -4,7 +4,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -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');
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/error.js
Expand Up @@ -4,7 +4,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -51,6 +51,6 @@ test('options.body error message', async t => {
}
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/gzip.js
Expand Up @@ -7,7 +7,7 @@ const testContent = 'Compressible response content.\n';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -46,6 +46,6 @@ test('preserve headers property', async t => {
t.ok((await got(s.url)).headers);
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
6 changes: 3 additions & 3 deletions test/headers.js
Expand Up @@ -4,7 +4,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand All @@ -29,7 +29,7 @@ test('accept header with json option', async t => {
let headers = (await got(s.url, {json: true})).body;
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, '');
});

Expand All @@ -48,6 +48,6 @@ test('zero content-length', async t => {
t.is(headers['content-length'], '0');
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/helpers.js
Expand Up @@ -4,7 +4,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -37,6 +37,6 @@ test('promise mode', async t => {
}
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/http.js
Expand Up @@ -4,7 +4,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -70,6 +70,6 @@ test('query option', async t => {
t.is((await got(s.url, {query: 'recent=true'})).body, 'recent');
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/https.js
Expand Up @@ -12,7 +12,7 @@ let caRootCert;

const pemP = pify(pem, Promise);

test.before('setup', async t => {
test.before('setup', async () => {
const caKeys = await pemP.createCertificate({days: 1, selfSigned: true});

caRootKey = caKeys.serviceKey;
Expand Down Expand Up @@ -58,6 +58,6 @@ test('make request to https server with ca', async t => {
t.is(body, 'ok');
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/json.js
Expand Up @@ -4,7 +4,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -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();
});
4 changes: 2 additions & 2 deletions test/post.js
Expand Up @@ -5,7 +5,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -109,6 +109,6 @@ test('content-type header is not overriden when object in options.body', async t
t.is(body['content-type'], 'doge');
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/redirects.js
Expand Up @@ -4,7 +4,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -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();
});
4 changes: 2 additions & 2 deletions test/retry.js
Expand Up @@ -7,7 +7,7 @@ let trys = 0;
let knocks = 0;
let fifth = 0;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/long', () => {});
Expand Down Expand Up @@ -58,6 +58,6 @@ test('falsy value prevent retries', async t => {
}
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
5 changes: 2 additions & 3 deletions test/stream.js
Expand Up @@ -5,7 +5,7 @@ import {createServer} from './_server';

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand Down Expand Up @@ -117,9 +117,8 @@ test.cb('accepts option.body as Stream', t => {
t.is(chunk.toString(), 'wow');
t.end();
});

});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});
4 changes: 2 additions & 2 deletions test/unix-socket.js
Expand Up @@ -8,7 +8,7 @@ const socketPath = tempfile('.socket');

let s;

test.before('setup', async t => {
test.before('setup', async () => {
s = await createServer();

s.on('/', (req, res) => {
Expand All @@ -28,6 +28,6 @@ test('protocol-less works', async t => {
t.is((await got(url)).body, 'ok');
});

test.after('cleanup', async t => {
test.after('cleanup', async () => {
await s.close();
});

0 comments on commit 7917413

Please sign in to comment.