Skip to content

Commit 522f12b

Browse files
authored
Update dependencies (#7)
1 parent 227e0c9 commit 522f12b

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var log = debug('fetch-test-server');
66

77
function TestServer(app) {
88
if (!(this instanceof TestServer)) {
9-
return new TestServer;
9+
return new TestServer();
1010
}
1111

1212
this.server = http.createServer(app);

index.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ describe('TestServer', () => {
2020
server = new TestServer(app);
2121
});
2222

23+
afterEach(() => {
24+
return server.listener ? server.close() : null;
25+
});
26+
2327
it('creates an http server', () => {
2428
assert.typeOf(server.server, 'object');
2529
});

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
"testing"
3030
],
3131
"dependencies": {
32-
"debug": "^2.2.0",
33-
"node-fetch": "^1.5.1"
32+
"debug": "^3.1.0",
33+
"node-fetch": "^2.1.2"
3434
},
3535
"devDependencies": {
36-
"chai": "3.5.0",
37-
"eslint": "2.8.0",
38-
"eslint-config-airbnb-base": "1.0.4",
39-
"eslint-plugin-import": "1.6.0",
40-
"mocha": "2.4.5"
36+
"chai": "^4.1.2",
37+
"eslint": "^4.19.1",
38+
"eslint-config-airbnb-base": "^12.1.0",
39+
"eslint-plugin-import": "^2.11.0",
40+
"mocha": "^5.1.1"
4141
}
4242
}

0 commit comments

Comments
 (0)