Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ojkelly committed Feb 17, 2024
1 parent 7757d06 commit 7afdf36
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 121 deletions.
24 changes: 10 additions & 14 deletions packages/plugins/plugin-test/src/commands/test/supervisor.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {formatTimestampDifference} from "@ojkelly/yarn-build-shared/src/supervisor";
import { formatTimestampDifference } from "@ojkelly/yarn-build-shared/src/supervisor";

test(`ensure formatTimestampDifference copes with a variety of time ranges`, () => {
const from = 0;
Expand All @@ -8,19 +8,15 @@ test(`ensure formatTimestampDifference copes with a variety of time ranges`, ()
const checkTwoMinutesSevenSeconds = 2 * 60 * 1000 + 7 * 1000;
const checkTenMinutes = 10 * 60 * 1000;

expect(
formatTimestampDifference(from, checkFiveHundredMilliseconds)
).toBe(`0.50s`);
expect(formatTimestampDifference(from, checkOneSecond)).toBe(
`1.00s`
expect(formatTimestampDifference(from, checkFiveHundredMilliseconds)).toBe(
`0.50s`,
);
expect(
formatTimestampDifference(from, checkSixPointThreeSeconds)
).toBe(`6.30s`);
expect(
formatTimestampDifference(from, checkTwoMinutesSevenSeconds)
).toBe(`2m 7.00s`);
expect(formatTimestampDifference(from, checkTenMinutes)).toBe(
`10m`
expect(formatTimestampDifference(from, checkOneSecond)).toBe(`1.00s`);
expect(formatTimestampDifference(from, checkSixPointThreeSeconds)).toBe(
`6.30s`,
);
expect(formatTimestampDifference(from, checkTwoMinutesSevenSeconds)).toBe(
`2m 7.00s`,
);
expect(formatTimestampDifference(from, checkTenMinutes)).toBe(`10m`);
});
Loading

0 comments on commit 7afdf36

Please sign in to comment.