UNPKG

e2ed

Version:

E2E testing framework over Playwright

18 lines (17 loc) 748 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Duration = void 0; const getDurationWithUnits_1 = require("../../../getDurationWithUnits"); const SafeHtml_1 = require("./SafeHtml"); const getDurationWithUnits = getDurationWithUnits_1.getDurationWithUnits; const SafeHtml = SafeHtml_1.SafeHtml; /** * Renders the duration of time interval in hours, minutes, seconds and milliseconds. * This base client function should not use scope variables (except other base functions). * @internal */ const Duration = ({ durationInMs }) => { const durationWithUnits = getDurationWithUnits(durationInMs); return jsx.createElement(SafeHtml, { withoutSanitize: durationWithUnits }); }; exports.Duration = Duration;