feat(settings): add SettingsService with cache and emitter\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// app/lib/__tests__/settings.server.test.ts
|
||||
import { settingsService } from '../settings.server';
|
||||
|
||||
describe('SettingsService', () => {
|
||||
test('set and get', async () => {
|
||||
const key = `test_key_${Date.now()}`;
|
||||
const val = { enabled: true };
|
||||
await settingsService.set(key, val, 'test');
|
||||
const got = await settingsService.get(key);
|
||||
expect(got).toEqual(val);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user