mirror of
https://github.com/immich-app/immich.git
synced 2026-04-12 04:02:15 -04:00
test: backups no longer take path param
This commit is contained in:
parent
6b9cc855a5
commit
adc2d5d1e5
@ -55,13 +55,14 @@ describe('/admin/database-backups', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('DELETE /:filename', async () => {
|
||||
describe('DELETE /', async () => {
|
||||
it('should delete backup', async () => {
|
||||
const filename = await utils.createBackup(admin.accessToken);
|
||||
|
||||
const { status } = await request(app)
|
||||
.delete(`/admin/database-backups/${filename}`)
|
||||
.set('Authorization', `Bearer ${admin.accessToken}`);
|
||||
.delete(`/admin/database-backups`)
|
||||
.set('Authorization', `Bearer ${admin.accessToken}`)
|
||||
.send({ backups: [filename] });
|
||||
|
||||
expect(status).toBe(200);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user