refactor: use strict typing

This commit is contained in:
Carlos Valente
2025-03-21 19:44:16 +01:00
committed by Carlos Valente
parent 4ed38340e0
commit 178640bfc4
39 changed files with 339 additions and 246 deletions
@@ -1,12 +1,16 @@
import { RuntimeStore } from 'ontime-types';
import * as messageService from '../MessageService.js';
describe('MessageService', () => {
let store: Partial<RuntimeStore>;
beforeEach(() => {
// at runtime, the store is instantiated before the message service
const store = {};
const storeSetter = (key, value) => (store[key] = value);
const storeGetter = (key) => store[key];
messageService.init(storeSetter, storeGetter);
store = {};
messageService.init(
(key, value) => (store[key] = value),
(key) => store[key],
);
messageService.clear();
});