e2ed
Version:
E2E testing framework over Playwright
8 lines (7 loc) • 364 B
TypeScript
/**
* Get the duration of time interval in hours, minutes, seconds and milliseconds.
* `getDurationWithUnits(1213)` = `'1s 213ms'`.
* Should be a pure function without dependencies in the form of a function declaration,
* because it is used in the JS client code of HTML report.
*/
export declare const getDurationWithUnits: (durationInMs: number) => string;