2024-03-21 12:59:49 +01:00
|
|
|
import { ILibraryRepository } from 'src/interfaces/library.interface';
|
2024-04-16 16:44:45 +02:00
|
|
|
import { Mocked, vitest } from 'vitest';
|
2023-09-20 13:16:33 +02:00
|
|
|
|
2024-04-16 16:44:45 +02:00
|
|
|
export const newLibraryRepositoryMock = (): Mocked<ILibraryRepository> => {
|
2023-09-20 13:16:33 +02:00
|
|
|
return {
|
2024-04-16 16:44:45 +02:00
|
|
|
get: vitest.fn(),
|
|
|
|
create: vitest.fn(),
|
|
|
|
delete: vitest.fn(),
|
|
|
|
softDelete: vitest.fn(),
|
|
|
|
update: vitest.fn(),
|
|
|
|
getStatistics: vitest.fn(),
|
|
|
|
getAssetIds: vitest.fn(),
|
|
|
|
getAllDeleted: vitest.fn(),
|
|
|
|
getAll: vitest.fn(),
|
2023-09-20 13:16:33 +02:00
|
|
|
};
|
|
|
|
};
|