refactor: make message service stateless

This commit is contained in:
Carlos Valente
2024-10-13 22:30:37 +02:00
committed by Carlos Valente
parent a4aa513d1f
commit 77e87e1d0c
3 changed files with 14 additions and 46 deletions
@@ -1,12 +1,6 @@
import * as messageService from '../MessageService.js';
describe('MessageService', () => {
const publishFunction = () => {};
beforeAll(() => {
messageService.init(publishFunction);
});
beforeEach(() => {
messageService.clear();
});