removed stub search repo
This commit is contained in:
parent
13d7222a72
commit
4bfbd2de4c
5 changed files with 1 additions and 26 deletions
|
@ -1,4 +1,4 @@
|
|||
import { AssetEntity, AssetType } from '@app/infra/entities';
|
||||
import { AssetType } from '@app/infra/entities';
|
||||
|
||||
export enum SearchStrategy {
|
||||
CLIP = 'CLIP',
|
||||
|
@ -54,9 +54,3 @@ export interface SearchExploreItem<T> {
|
|||
fieldName: string;
|
||||
items: SearchExploreItemSet<T>;
|
||||
}
|
||||
|
||||
export const ISearchRepository = 'ISearchRepository';
|
||||
|
||||
export interface ISearchRepository {
|
||||
explore(userId: string): Promise<SearchExploreItem<AssetEntity>[]>;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ import {
|
|||
IMoveRepository,
|
||||
IPartnerRepository,
|
||||
IPersonRepository,
|
||||
ISearchRepository,
|
||||
IServerInfoRepository,
|
||||
ISharedLinkRepository,
|
||||
ISmartInfoRepository,
|
||||
|
@ -53,7 +52,6 @@ import {
|
|||
MoveRepository,
|
||||
PartnerRepository,
|
||||
PersonRepository,
|
||||
SearchRepository,
|
||||
ServerInfoRepository,
|
||||
SharedLinkRepository,
|
||||
SmartInfoRepository,
|
||||
|
@ -80,7 +78,6 @@ const providers: Provider[] = [
|
|||
{ provide: IMoveRepository, useClass: MoveRepository },
|
||||
{ provide: IPartnerRepository, useClass: PartnerRepository },
|
||||
{ provide: IPersonRepository, useClass: PersonRepository },
|
||||
{ provide: ISearchRepository, useClass: SearchRepository },
|
||||
{ provide: IServerInfoRepository, useClass: ServerInfoRepository },
|
||||
{ provide: ISharedLinkRepository, useClass: SharedLinkRepository },
|
||||
{ provide: ISmartInfoRepository, useClass: SmartInfoRepository },
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
import { ISearchRepository, SearchExploreItem } from '@app/domain';
|
||||
import { AssetEntity } from '../entities';
|
||||
|
||||
export class SearchRepository implements ISearchRepository {
|
||||
async explore(): Promise<SearchExploreItem<AssetEntity>[]> {
|
||||
return [];
|
||||
}
|
||||
}
|
|
@ -13,7 +13,6 @@ export * from './metadata.repository.mock';
|
|||
export * from './move.repository.mock';
|
||||
export * from './partner.repository.mock';
|
||||
export * from './person.repository.mock';
|
||||
export * from './search.repository.mock';
|
||||
export * from './shared-link.repository.mock';
|
||||
export * from './smart-info.repository.mock';
|
||||
export * from './storage.repository.mock';
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import { ISearchRepository } from '@app/domain';
|
||||
|
||||
export const newSearchRepositoryMock = (): jest.Mocked<ISearchRepository> => {
|
||||
return {
|
||||
explore: jest.fn(),
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue