File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var log = debug('fetch-test-server');
66
77function TestServer ( app ) {
88 if ( ! ( this instanceof TestServer ) ) {
9- return new TestServer ;
9+ return new TestServer ( ) ;
1010 }
1111
1212 this . server = http . createServer ( app ) ;
Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments