import { ISettingStore } from '../../lib/types/stores/settings-store'; export default class FakeSettingStore implements ISettingStore { settings: Map = new Map(); async delete(key: string): Promise { this.settings.delete(key); } async deleteAll(): Promise { this.settings = new Map(); } destroy(): void {} async exists(key: string): Promise { return this.settings.has(key); } async get(key: string): Promise { const setting = this.settings.get(key); if (setting) { return setting; } return undefined; } async getAll(): Promise { return Array.from(this.settings.values()); } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types async insert(name: string, content: any): Promise { this.settings.set(name, content); } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types async updateRow(name: string, content: any): Promise { this.settings.set(name, content); } }