mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
test: probably stuff that got lost in merge
Signed-off-by: izzy <me@insrt.uk>
This commit is contained in:
+4
-1
@@ -649,7 +649,10 @@ export const utils = {
|
|||||||
|
|
||||||
resetBackups: async (accessToken: string) => {
|
resetBackups: async (accessToken: string) => {
|
||||||
const { backups } = await listDatabaseBackups({ headers: asBearerAuth(accessToken) });
|
const { backups } = await listDatabaseBackups({ headers: asBearerAuth(accessToken) });
|
||||||
await deleteDatabaseBackup({ databaseBackupDeleteDto: { backups } }, { headers: asBearerAuth(accessToken) });
|
await deleteDatabaseBackup(
|
||||||
|
{ databaseBackupDeleteDto: { backups: backups.map((dto) => dto.filename) } },
|
||||||
|
{ headers: asBearerAuth(accessToken) },
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
prepareTestBackup: async (generate: 'empty' | 'corrupted') => {
|
prepareTestBackup: async (generate: 'empty' | 'corrupted') => {
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ export const newStorageRepositoryMock = (): Mocked<RepositoryInterface<StorageRe
|
|||||||
createZipStream: vitest.fn(),
|
createZipStream: vitest.fn(),
|
||||||
createPlainReadStream: vitest.fn(),
|
createPlainReadStream: vitest.fn(),
|
||||||
createReadStream: vitest.fn(),
|
createReadStream: vitest.fn(),
|
||||||
createPlainReadStream: vitest.fn(),
|
|
||||||
createGzip: vitest.fn(),
|
createGzip: vitest.fn(),
|
||||||
createGunzip: vitest.fn(),
|
createGunzip: vitest.fn(),
|
||||||
readFile: vitest.fn(),
|
readFile: vitest.fn(),
|
||||||
|
|||||||
Reference in New Issue
Block a user