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-splash-store.ts

51 lines
1.6 KiB
TypeScript
Raw Normal View History

2021-11-09 11:52:02 +01:00
import {
IUserSplashKey,
IUserSplash,
IUserSplashStore,
2021-11-09 20:55:23 +01:00
} from '../../lib/types/stores/user-splash-store';
2021-11-09 11:52:02 +01:00
export default class FakeUserSplashStore implements IUserSplashStore {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getAllUserSplashes(userId: number): Promise<IUserSplash[]> {
2021-11-09 11:52:02 +01:00
return Promise.resolve([]);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2021-11-09 20:55:23 +01:00
getSplash(userId: number, splashId: string): Promise<IUserSplash> {
2021-11-09 20:39:13 +01:00
return Promise.resolve(undefined);
2021-11-09 11:52:02 +01:00
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2021-11-09 20:55:23 +01:00
updateSplash(splash: IUserSplash): Promise<IUserSplash> {
2021-11-09 20:39:13 +01:00
return Promise.resolve(undefined);
2021-11-09 11:52:02 +01:00
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
exists(key: IUserSplashKey): Promise<boolean> {
return Promise.resolve(false);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
get(key: IUserSplashKey): Promise<IUserSplash> {
return Promise.resolve(undefined);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getAll(): Promise<IUserSplash[]> {
return Promise.resolve([]);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
delete(key: IUserSplashKey): Promise<void> {
return Promise.resolve(undefined);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
deleteAll(): Promise<void> {
return Promise.resolve(undefined);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
destroy(): void {}
}