mirror of
https://github.com/mileswolfallen2/miles-web.git
synced 2026-12-05 16:20:44 +00:00
update
This commit is contained in:
1 parent
f26fdd9d07
commit
16ae817c21
8 files changed
+13
-11
No files matched your search
@@ -65,6 +65,8 @@ test('HTTP app exposes documented APIs, security headers, and CORS allowlist', a
|
||||
assert.equal(status.status, 200);
|
||||
const statusBody = await status.json();
|
||||
assert.equal(statusBody.servers.length, 1);
|
||||
assert.equal(statusBody.servers[0].name, 'Home Server');
|
||||
assert.equal('ip' in statusBody.servers[0], false, 'public status must not expose server IPs');
|
||||
assert.equal(statusBody.services.length, 1);
|
||||
|
||||
const preflight = await fetch(base + '/api/status', {
|
||||
|
||||
@@ -20,6 +20,8 @@ test('config loads local defaults and project registry', () => {
|
||||
assert.equal(config.projects.find((p) => p.id === 'fedl').featured, true);
|
||||
assert.equal(config.services.length, 5);
|
||||
assert.equal(config.servers[0].ip, '10.0.0.87');
|
||||
assert.equal(config.servers[0].name, 'Main Server');
|
||||
assert.equal(config.servers[1].name, 'FEDL Server');
|
||||
});
|
||||
|
||||
test('config honors environment overrides without changing code', () => {
|
||||
|
||||
Reference in new issue
Block a user