From 81059ed42ab6bb9b0707554569c2f442fabd7a96 Mon Sep 17 00:00:00 2001 From: Theo Truong Date: Tue, 28 May 2024 11:58:59 -0600 Subject: [PATCH] # skipped -> has_errors Signed-off-by: Theo Truong --- tools/src/tester/StoryEvaluator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/src/tester/StoryEvaluator.ts b/tools/src/tester/StoryEvaluator.ts index 53d060260..4c1028eb9 100644 --- a/tools/src/tester/StoryEvaluator.ts +++ b/tools/src/tester/StoryEvaluator.ts @@ -49,14 +49,14 @@ export default class StoryEvaluator { async #evaluate_chapters (chapters: Chapter[]): Promise { if (this.has_errors) return [] - let skipped: boolean = this.has_errors + let has_errors: boolean = this.has_errors const evaluations: ChapterEvaluation[] = [] for (const chapter of chapters) { const evaluator = new ChapterEvaluator(chapter) - const evaluation = await evaluator.evaluate(skipped) - skipped = skipped || evaluation.result === Result.ERROR + const evaluation = await evaluator.evaluate(has_errors) + has_errors = has_errors || evaluation.result === Result.ERROR if (evaluation.result === Result.FAILED) this.result = Result.FAILED if (evaluation.result === Result.ERROR) this.result = Result.ERROR evaluations.push(evaluation)