Improve summit terrain, mobile HUD and multiplayer night equipment
Add the Blender flashlight asset with a 600 lm beam and reduced bloom, shared-mode self badge, and compact phone controls. Relocate the summit marker, blend terrain seams, widen walking routes, and align local server configuration on port 2027.
This commit is contained in:
@@ -8,10 +8,10 @@ import { loadServerConfig } from '../server/config.ts';
|
||||
test('server and Mongo verifier can load the documented JSON configuration', () => {
|
||||
const example = new URL('../.config.example.json', import.meta.url);
|
||||
const config = loadServerConfig(example);
|
||||
assert.equal(config.port, 3000);
|
||||
assert.equal(config.port, 2027);
|
||||
assert.equal(config.visitStore, 'mongo');
|
||||
assert.equal(config.mongoDatabase, 'sunrise');
|
||||
assert.ok(config.allowedOrigins.includes('http://127.0.0.1:3000'));
|
||||
assert.ok(config.allowedOrigins.includes('http://127.0.0.1:2027'));
|
||||
});
|
||||
|
||||
test('missing or invalid configuration fails without exposing its contents', () => {
|
||||
@@ -22,7 +22,7 @@ test('missing or invalid configuration fails without exposing its contents', ()
|
||||
writeFileSync(path, '{"mongoUri":"secret",');
|
||||
assert.throws(() => loadServerConfig(path), /^Error: Invalid JSON in .config.json$/);
|
||||
const example = JSON.parse(readFileSync(new URL('../.config.example.json', import.meta.url), 'utf8'));
|
||||
for (const override of [{ port: '3000' }, { port: 65536 }, { host: '' },
|
||||
for (const override of [{ port: '2027' }, { port: 65536 }, { host: '' },
|
||||
{ allowedOrigins: 'https://example.com' }, { visitStore: 'invalid' }, { mongoUri: null }]) {
|
||||
writeFileSync(path, JSON.stringify({ ...example, ...override }));
|
||||
assert.throws(() => loadServerConfig(path), /Invalid .config.json field/);
|
||||
|
||||
Reference in New Issue
Block a user