mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 12:53:32 +00:00
refactor: use strict typing
This commit is contained in:
committed by
Carlos Valente
parent
4ed38340e0
commit
178640bfc4
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user