From 974e03823b671520990bf95d3bf0efce16447750 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 22 Aug 2024 21:18:30 +0100 Subject: [PATCH] chore(automated): Lint commit and format --- tests/src/scripts/coverage.test.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/src/scripts/coverage.test.ts b/tests/src/scripts/coverage.test.ts index 284ec24..4a555b1 100644 --- a/tests/src/scripts/coverage.test.ts +++ b/tests/src/scripts/coverage.test.ts @@ -158,3 +158,33 @@ test("oldCoverage pass", () => { expect(result).toEqual(83.33); process.chdir("../.."); }); +test("low coverage score", () => { + process.chdir("tests/pass_repo"); + + const result: stepResponse = getCoverage( + parse(`SF:lib/main.dart +DA:3,1 +DA:8,1 +DA:10,1 +DA:17,1 +DA:21,1 +DA:22,1 +DA:28,1 +DA:30,1 +DA:32,1 +DA:33,1 +DA:34,1 +DA:35,1 +LF:12 +LH:12 +end_of_record +`), + COVERAGE_DIR, + "50" + ); + + console.log(result.output); + expect(result.output.includes(" (🔻 down from")).toBe(true); + + process.chdir("../.."); +});