Rename factory and don't use the keyword 'new' to create server while testing

This commit is contained in:
Daniel García Aubert
2020-06-02 11:57:11 +02:00
parent 48c28aea0b
commit ffe19827fd
21 changed files with 53 additions and 53 deletions
+2 -2
View File
@@ -5,14 +5,14 @@ require('../support/test-helper');
const helper = require('../support/test-helper');
var assert = require('../support/assert');
const mapnik = require('@carto/mapnik');
var CartodbWindshaft = require('../../lib/server');
const createServer = require('../../lib/server');
var serverOptions = require('../../lib/server-options');
describe('named maps provider cache', function () {
var server;
before(function () {
server = new CartodbWindshaft(serverOptions);
server = createServer(serverOptions);
});
var username = 'localhost';