mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 18:20:43 +00:00
test: tighten live media chunk helpers
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user