stash: moving computers because pnpm is cooked

This commit is contained in:
izzy
2025-11-28 12:50:30 +00:00
parent c50118e535
commit 13e9cf0ed9
3 changed files with 22 additions and 4 deletions

View File

@@ -34,9 +34,24 @@ describe('/admin/maintenance', () => {
});
});
describe('POST /integrity/summary', async () => {
it('should report no issues', async () => {
const { status, body } = await request(app)
.get('/admin/maintenance/integrity/summary')
.set('Authorization', `Bearer ${admin.accessToken}`)
.send();
expect(status).toBe(200);
expect(body).toEqual({
missing_file: 0,
orphan_file: 0,
checksum_mismatch: 0,
});
});
});
// => enter maintenance mode
describe.sequential('POST /', () => {
describe.skip.sequential('POST /', () => {
it('should require authentication', async () => {
const { status, body } = await request(app).post('/admin/maintenance').send({
action: 'end',
@@ -93,7 +108,7 @@ describe('/admin/maintenance', () => {
// => in maintenance mode
describe.sequential('in maintenance mode', () => {
describe.skip.sequential('in maintenance mode', () => {
describe('GET ~/server/config', async () => {
it('should indicate we are in maintenance mode', async () => {
const { status, body } = await request(app).get('/server/config');
@@ -147,7 +162,7 @@ describe('/admin/maintenance', () => {
// => exit maintenance mode
describe.sequential('POST /', () => {
describe.skip.sequential('POST /', () => {
it('should exit maintenance mode', async () => {
const { status } = await request(app).post('/admin/maintenance').set('cookie', cookie!).send({
action: 'end',