diff --git a/server.js b/server.js index dcc7b96..d041143 100644 --- a/server.js +++ b/server.js @@ -154,10 +154,6 @@ const swaggerOptions = { url: 'https://api.tsotchke.net', description: 'Production', }, - { - url: 'http://localhost:3000', - description: 'Local development', - }, ], tags: [ { name: 'System', description: 'Runtime status and provenance' }, diff --git a/test/server.test.js b/test/server.test.js index 0eaa4b4..3f3d207 100644 --- a/test/server.test.js +++ b/test/server.test.js @@ -107,6 +107,12 @@ test('exposes OpenAPI and returns structured 404 errors', async () => { const openapi = await request('/v1/openapi.json'); assert.equal(openapi.response.status, 200); assert.equal(openapi.body.openapi, '3.0.3'); + assert.deepEqual(openapi.body.servers, [ + { + url: 'https://api.tsotchke.net', + description: 'Production', + }, + ]); const missing = await request('/does-not-exist'); assert.equal(missing.response.status, 404);