Use mocha hooks to create server just before perform the test

This commit is contained in:
Daniel García Aubert
2018-04-16 16:16:23 +02:00
parent 98f29f945b
commit 817afb13d1
32 changed files with 205 additions and 65 deletions
+6 -2
View File
@@ -12,8 +12,12 @@ var CartodbWindshaft = require('../../lib/cartodb/server');
var serverOptions = require('../../lib/cartodb/server_options');
describe('tests from old api translated to multilayer', function() {
var server = new CartodbWindshaft(serverOptions);
server.setMaxListeners(0);
var server;
before(function () {
server = new CartodbWindshaft(serverOptions);
server.setMaxListeners(0);
});
var layergroupUrl = '/api/v1/map';