mirror of
https://github.com/immich-app/immich.git
synced 2025-07-21 22:44:23 +02:00
chore: finish migrating eslint config files; bump unicorn (#17200)
This commit is contained in:
parent
e4f83680d9
commit
238c151ac3
23 changed files with 883 additions and 1286 deletions
server/test
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue