Files
piik/tests/media-time.test.ts
T
AAA f6b611978b fix(app): restore approved connections and refine shared playback
Preserve explicit App approval, expose playback and transfer progress, and keep shared identity and native window presentation coherent. Retain terminal fallback, cancel external input safely, and reject withdrawn UDP preparation before adoption.

Reuse exact Web artifacts across matched targets and extend the existing text participant with typed history, replies and reactions. Verified Rust/WASM/protocol checks, 1614 Web tests, Windows capture compilation and five external input lifecycle tests.
2026-11-16 07:03:38 -04:00

8 lines
355 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { expect, test } from "vitest";
import { formatMediaTime } from "../src/client/media/media-time";
test("media labels preserve real elapsed time and distinguish unknown duration", () => {
expect([0, 64.9, 3675, Number.NaN, Number.POSITIVE_INFINITY].map(formatMediaTime))
.toEqual(["0:00", "1:04", "1:01:15", "–:––", "–:––"]);
});