test: tighten messaging helper assertions

This commit is contained in:
Peter Steinberger
2026-05-08 20:55:16 +01:00
parent b758abd3ad
commit 45ef4815df
8 changed files with 6 additions and 14 deletions

View File

@@ -9,7 +9,6 @@ import {
describe("vitest process group helpers", () => {
function getListenerSet(listeners: Map<string, Set<() => void>>, event: string) {
const set = listeners.get(event);
expect(set).toBeDefined();
if (!set) {
throw new Error(`expected ${event} listener set`);
}