1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/test/fixtures/fake-user-feedback-store.ts
Christopher Kolstad ff7be7696c
fix: Stores as typescript and with interfaces. (#902)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-12 15:04:37 +02:00

48 lines
1.4 KiB
TypeScript

import {
IUserFeedback,
IUserFeedbackKey,
IUserFeedbackStore,
} from '../../lib/types/stores/user-feedback-store';
export default class FakeUserFeedbackStore implements IUserFeedbackStore {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
delete(key: IUserFeedbackKey): Promise<void> {
return Promise.resolve(undefined);
}
deleteAll(): Promise<void> {
return Promise.resolve(undefined);
}
destroy(): void {}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
exists(key: IUserFeedbackKey): Promise<boolean> {
return Promise.resolve(false);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
get(key: IUserFeedbackKey): Promise<IUserFeedback> {
return Promise.resolve(undefined);
}
getAll(): Promise<IUserFeedback[]> {
return Promise.resolve([]);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getAllUserFeedback(userId: number): Promise<IUserFeedback[]> {
return Promise.resolve([]);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getFeedback(userId: number, feedbackId: string): Promise<IUserFeedback> {
return Promise.resolve(undefined);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
updateFeedback(feedback: IUserFeedback): Promise<IUserFeedback> {
return Promise.resolve(undefined);
}
}