Fix tests

This commit is contained in:
James Long
2026-03-23 19:43:24 -04:00
parent 7bfbdae444
commit d59a9c9817
2 changed files with 19 additions and 1 deletions
+6
View File
@@ -39,6 +39,12 @@ export namespace SyncEvent {
const Bus = new EventEmitter<{ event: [{ def: Definition; event: Event }] }>()
export function reset() {
frozen = false
projectors = undefined
convertEvent = (_, data) => data
}
export function init(input: { projectors: Array<[Definition, ProjectorFunc]>; convertEvent?: typeof convertEvent }) {
projectors = new Map(input.projectors)