PawnDetail, RoomCodeInput, RouteTree, ShareFailureHelp and ViewerOverview, the room voice panel and its connection details, the participant topology, the relay volunteer limits and the media failure resolver were reached only from the development previews and their tests: an import trace from the product entry without its DEV routes, from site/ and from scripts/ reaches none of them. Their preview sections, the room voice preview hook and the troubleshooting checks that only fed the removed dialog go with them, along with their tests, their styles and the 51 copy keys nothing else uses, in all five locales. The document title helper stays: it is also preview-only today, but the visual language standard names it as the owner of document titles.
14 lines
705 B
TypeScript
14 lines
705 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { shouldPauseLocalPreview } from "../src/client/components/living/use-host-preview-playback";
|
|
|
|
describe("shouldPauseLocalPreview", () => {
|
|
it("distinguishes local preview suspension from active focus", () => {
|
|
expect(shouldPauseLocalPreview("hidden", true)).toBe(true);
|
|
expect(shouldPauseLocalPreview("visible", false)).toBe(true);
|
|
expect(shouldPauseLocalPreview("visible", true)).toBe(false);
|
|
expect(shouldPauseLocalPreview("hidden", false, true)).toBe(false);
|
|
expect(shouldPauseLocalPreview("visible", false, false, false)).toBe(false);
|
|
expect(shouldPauseLocalPreview("hidden", false, false, false)).toBe(false);
|
|
});
|
|
});
|