Change default server port to 3600
This commit is contained in:
@@ -103,7 +103,7 @@ test('strict month validation handles year bounds and December rollover', t => {
|
||||
test('configuration requires explicit absolute private DB path and strict origin/port', t => {
|
||||
const { dbPath } = fixture(t);
|
||||
const config = readConfig({ DB_PATH: dbPath });
|
||||
assert.deepEqual(config, { dbPath, distRoot: resolve('dist'), host: '127.0.0.1', port: 3000, publicOrigin: 'http://127.0.0.1:3000' });
|
||||
assert.deepEqual(config, { dbPath, distRoot: resolve('dist'), host: '127.0.0.1', port: 3600, publicOrigin: 'http://127.0.0.1:3600' });
|
||||
assert.equal(readConfig({ DB_PATH: dbPath, HOST: '0.0.0.0', PORT: '4010' }).host, '0.0.0.0');
|
||||
assert.throws(() => readConfig({}));
|
||||
assert.throws(() => readConfig({ DB_PATH: 'relative.sqlite' }));
|
||||
|
||||
Reference in New Issue
Block a user