Fix status route test paths
Build and Push Docker Image / build (push) Successful in 1m3s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m17s
CI / Security audit (push) Successful in 1m33s
CI / Tests & coverage (push) Failing after 1m41s

- Update test paths from /api/status/status to /api/status
- Matches the route change from /status to / in status.js
This commit is contained in:
2026-05-21 01:51:00 +01:00
parent f6ad7c85bf
commit 47817d057b
+7 -7
View File
@@ -559,13 +559,13 @@ describe('GET /api/dashboard/user-downloads', () => {
});
// ---------------------------------------------------------------------------
// GET /api/status/status
// GET /api/status
// ---------------------------------------------------------------------------
describe('GET /api/status/status', () => {
describe('GET /api/status', () => {
it('returns 401 when not authenticated', async () => {
const app = createApp({ skipRateLimits: true });
const res = await request(app).get('/api/status/status');
const res = await request(app).get('/api/status');
expect(res.status).toBe(401);
});
@@ -578,7 +578,7 @@ describe('GET /api/status/status', () => {
nock(RADARR_BASE).get('/api/v3/notification').reply(200, []);
const res = await request(app)
.get('/api/status/status')
.get('/api/status')
.set('Cookie', cookies);
expect(res.status).toBe(403);
expect(res.body.error).toMatch(/admin/i);
@@ -592,7 +592,7 @@ describe('GET /api/status/status', () => {
nock(RADARR_BASE).get('/api/v3/notification').reply(200, []);
const res = await request(app)
.get('/api/status/status')
.get('/api/status')
.set('Cookie', cookies);
expect(res.status).toBe(200);
expect(res.body.server).toBeDefined();
@@ -611,7 +611,7 @@ describe('GET /api/status/status', () => {
nock(RADARR_BASE).get('/api/v3/notification').replyWithError('connection refused');
const res = await request(app)
.get('/api/status/status')
.get('/api/status')
.set('Cookie', cookies);
expect(res.status).toBe(200);
expect(res.body.webhooks.sonarr).toBeNull();
@@ -628,7 +628,7 @@ describe('GET /api/status/status', () => {
nock(RADARR_BASE).get('/api/v3/notification').reply(200, []);
const res = await request(app)
.get('/api/status/status')
.get('/api/status')
.set('Cookie', cookies);
expect(res.status).toBe(200);
expect(res.body.webhooks.sonarr).toBeDefined();