mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
test: update tests to be more linter complaint & use new routines
This commit is contained in:
@@ -445,8 +445,8 @@ describe(MaintenanceWorkerService.name, () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should write file', async () => {
|
it('should write file', async () => {
|
||||||
await sut.uploadBackup({ originalname: 'path.sql.gz' } as never);
|
await sut.uploadBackup({ originalname: 'path.sql.gz', buffer: 'buffer' } as never);
|
||||||
expect(mocks.storage.overwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz');
|
expect(mocks.storage.createOrOverwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz', 'buffer');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -223,8 +223,8 @@ describe(MaintenanceService.name, () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should write file', async () => {
|
it('should write file', async () => {
|
||||||
await sut.uploadBackup({ originalname: 'path.sql.gz' } as never);
|
await sut.uploadBackup({ originalname: 'path.sql.gz', buffer: 'buffer' } as never);
|
||||||
expect(mocks.storage.overwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz');
|
expect(mocks.storage.createOrOverwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz', 'buffer');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user