
* handle local geojson files in styles and rendered tiles - use 'file://' as indicator for local files - add directory as default directory - serve local files at - add documentation for static file serving - add some minor fixes (icon directory, directory checking, decodeURIComponent, extend error message) * Update .gitignore --------- Co-authored-by: Miko <miko@home-laptop.fritz.box> Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
27 lines
579 B
JavaScript
27 lines
579 B
JavaScript
process.env.NODE_ENV = 'test';
|
|
|
|
import { expect } from 'chai';
|
|
import supertest from 'supertest';
|
|
import { server } from '../src/server.js';
|
|
|
|
global.expect = expect;
|
|
global.supertest = supertest;
|
|
|
|
before(function () {
|
|
console.log('global setup');
|
|
const running = server({
|
|
configPath: 'config.json',
|
|
port: 8888,
|
|
publicUrl: '/test/',
|
|
});
|
|
global.app = running.app;
|
|
global.server = running.server;
|
|
return running.startupPromise;
|
|
});
|
|
|
|
after(function () {
|
|
console.log('global teardown');
|
|
global.server.close(function () {
|
|
console.log('Done');
|
|
});
|
|
});
|