Skip to content

Commit

Permalink
test: remove brute-force coverage to check if other fix solved CI
Browse files Browse the repository at this point in the history
  • Loading branch information
EvAvKein committed May 24, 2024
1 parent dc48ba4 commit a8f808d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions frontend/src/helpers/secsToReadableDuration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@ function expectConversion(secs: number, expected: string) {
expect(secsToReadableDuration(secs)).toBe(expected);
}

describe("testDebug", () => {
it("attempts (by GH-Copliot) to brute-force coverage, after i told it local Istanbul reports 100% but CI only 20%", () => {
expect(secsToReadableDuration(0.9)).toBe("");
expect(secsToReadableDuration(1.1)).toBe("1s");
expect(secsToReadableDuration(60)).toBe("1m");
expect(secsToReadableDuration(3600)).toBe("1h");
expect(secsToReadableDuration(86400)).toBe("1d");
expect(secsToReadableDuration(3599)).toBe("59m 59s");
expect(secsToReadableDuration(64804)).toBe("18h 4s");
});
});

describe("secsToReadableDuration", () => {
it("Round decimals down", () => {
expectConversion(0.9, "");
Expand Down

0 comments on commit a8f808d

Please sign in to comment.