mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 23:01:06 -08:00
chore: finish migrating eslint config files; bump unicorn (#17200)
This commit is contained in:
@@ -170,7 +170,9 @@ export const newTestService = <T extends BaseService>(
|
||||
|
||||
const mocks: ServiceMocks = {
|
||||
access: newAccessRepositoryMock(),
|
||||
// eslint-disable-next-line no-sparse-arrays
|
||||
logger: automock(LoggingRepository, { args: [, configMock], strict: false }),
|
||||
// eslint-disable-next-line no-sparse-arrays
|
||||
cron: automock(CronRepository, { args: [, loggerMock] }),
|
||||
crypto: newCryptoRepositoryMock(),
|
||||
activity: automock(ActivityRepository),
|
||||
@@ -181,6 +183,7 @@ export const newTestService = <T extends BaseService>(
|
||||
config: newConfigRepositoryMock(),
|
||||
database: newDatabaseRepositoryMock(),
|
||||
downloadRepository: automock(DownloadRepository, { strict: false }),
|
||||
// eslint-disable-next-line no-sparse-arrays
|
||||
event: automock(EventRepository, { args: [, , loggerMock], strict: false }),
|
||||
job: newJobRepositoryMock(),
|
||||
apiKey: automock(ApiKeyRepository),
|
||||
@@ -197,6 +200,7 @@ export const newTestService = <T extends BaseService>(
|
||||
person: automock(PersonRepository, { strict: false }),
|
||||
process: automock(ProcessRepository, { args: [loggerMock] }),
|
||||
search: automock(SearchRepository, { args: [loggerMock], strict: false }),
|
||||
// eslint-disable-next-line no-sparse-arrays
|
||||
serverInfo: automock(ServerInfoRepository, { args: [, loggerMock], strict: false }),
|
||||
session: automock(SessionRepository),
|
||||
sharedLink: automock(SharedLinkRepository),
|
||||
@@ -205,6 +209,7 @@ export const newTestService = <T extends BaseService>(
|
||||
sync: automock(SyncRepository),
|
||||
systemMetadata: newSystemMetadataRepositoryMock(),
|
||||
// systemMetadata: automock(SystemMetadataRepository, { strict: false }),
|
||||
// eslint-disable-next-line no-sparse-arrays
|
||||
tag: automock(TagRepository, { args: [, loggerMock], strict: false }),
|
||||
telemetry: newTelemetryRepositoryMock(),
|
||||
trash: automock(TrashRepository),
|
||||
|
||||
Reference in New Issue
Block a user