Skip to content

Commit

Permalink
chore(automated): Lint commit and format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 22, 2024
1 parent f091719 commit 14cb9e8
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions tests/src/scripts/coverage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ test("oldCoverage pass", () => {
test("differet coverage scores", () => {
process.chdir("tests/pass_repo");

const result: stepResponse = getCoverage(
parse(`SF:lib/main.dart
const testLcov = `SF:lib/main.dart
DA:3,1
DA:8,1
DA:10,1
Expand All @@ -178,36 +177,15 @@ DA:35,1
LF:12
LH:12
end_of_record
`),
COVERAGE_DIR,
"50"
);
`;

const result: stepResponse = getCoverage(parse(testLcov), COVERAGE_DIR, "50");

expect(result.output.includes("✅")).toBe(true);

const result2: 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,
"99"
);
const result2: stepResponse = getCoverage(parse(testLcov), COVERAGE_DIR, "99");

expect(result.output.includes("✅")).toBe(false);
expect(result2.output.includes("✅")).toBe(false);

process.chdir("../..");
});

0 comments on commit 14cb9e8

Please sign in to comment.