mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
794327f8e0
* fix: reject duplicate segment names * refactor: remove unnecessary comment * refactor: improve validateName logic with existsByName * fix: removed unused NotFoundError import
59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
import { ISegmentStore } from '../../lib/types/stores/segment-store';
|
|
import { IFeatureStrategySegment, ISegment } from '../../lib/types/model';
|
|
|
|
export default class FakeSegmentStore implements ISegmentStore {
|
|
create(): Promise<ISegment> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
async delete(): Promise<void> {
|
|
return;
|
|
}
|
|
|
|
async deleteAll(): Promise<void> {
|
|
return;
|
|
}
|
|
|
|
async exists(): Promise<boolean> {
|
|
return false;
|
|
}
|
|
|
|
get(): Promise<ISegment> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
async getAll(): Promise<ISegment[]> {
|
|
return [];
|
|
}
|
|
|
|
async getActive(): Promise<ISegment[]> {
|
|
return [];
|
|
}
|
|
|
|
async getByStrategy(): Promise<ISegment[]> {
|
|
return [];
|
|
}
|
|
|
|
update(): Promise<ISegment> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
addToStrategy(): Promise<void> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
removeFromStrategy(): Promise<void> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
async getAllFeatureStrategySegments(): Promise<IFeatureStrategySegment[]> {
|
|
return [];
|
|
}
|
|
|
|
async existsByName(): Promise<boolean> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
destroy(): void {}
|
|
}
|