test: tighten live media chunk helpers

This commit is contained in:
Peter Steinberger
2026-05-08 21:03:55 +01:00
parent 8465629fb8
commit c895afe872
2 changed files with 0 additions and 2 deletions

View File

@@ -19,7 +19,6 @@ function expectFencesBalanced(chunks: string[]) {
function requireChunk(chunks: string[], index: number): string {
const chunk = chunks[index];
expect(chunk).toBeDefined();
if (chunk === undefined) {
throw new Error(`expected chunk ${index}`);
}

View File

@@ -18,7 +18,6 @@ function requirePlanEntry(
suiteId: string,
) {
const entry = plan.find((candidate) => candidate.suite.id === suiteId);
expect(entry).toBeDefined();
if (!entry) {
throw new Error(`expected ${suiteId} run plan entry`);
}