Do not invoke done
in test setup
This commit is contained in:
parent
47f6c90a98
commit
832b2d22be
1 changed files with 2 additions and 2 deletions
|
@ -3,13 +3,13 @@ process.env.NODE_ENV = 'test';
|
|||
global.should = require('should');
|
||||
global.supertest = require('supertest');
|
||||
|
||||
before(function(done) {
|
||||
before(function() {
|
||||
console.log('global setup');
|
||||
process.chdir('test_data');
|
||||
var running = require('../src/server')({
|
||||
config: 'config.json',
|
||||
port: 8888
|
||||
}, done);
|
||||
});
|
||||
global.app = running.app;
|
||||
global.server = running.server;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue